X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e8c6a69c9d700bbbc1b0d20fc2ecfad265f7a4da..1e93ca17294b6da0d8cf63bffb0017cdfa0013df:/src/generic/listctrl.cpp diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index ea8d28ff9e..cfd5dc91e2 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -4516,6 +4516,9 @@ void wxListMainWindow::InsertItem( wxListItem &item ) m_lines.Insert( line, id ); m_dirty = TRUE; + + SendNotify(id, wxEVT_COMMAND_LIST_INSERT_ITEM); + RefreshLines(id, GetItemCount() - 1); } @@ -4914,6 +4917,8 @@ bool wxGenericListCtrl::SetItemData( long item, long data ) bool wxGenericListCtrl::GetItemRect( long item, wxRect &rect, int WXUNUSED(code) ) const { m_mainWin->GetItemRect( item, rect ); + if ( m_mainWin->HasHeader() ) + rect.y += HEADER_HEIGHT + 1; return TRUE; }