1. changed spelling error in wxTR_HAS_VARIABLE_HEIGHT (missing 'E')
2. compile fix for dcscreen.cpp 3. editing labels in place works in the tree ctrl and shown in the sample 4. sped up items deletion in the listview git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1231,13 +1231,21 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
|
||||
event.m_col = hdr->iSubItem;
|
||||
break;
|
||||
}
|
||||
|
||||
case LVN_DELETEALLITEMS:
|
||||
{
|
||||
eventType = wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS;
|
||||
// NM_LISTVIEW* hdr = (NM_LISTVIEW*)lParam;
|
||||
event.m_itemIndex = -1;
|
||||
break;
|
||||
}
|
||||
// what's the sense of generating a wxWin event for this when
|
||||
// it's absolutely not portable?
|
||||
#if 0
|
||||
eventType = wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS;
|
||||
event.m_itemIndex = -1;
|
||||
#endif // 0
|
||||
|
||||
// return TRUE to suppress all additional LVN_DELETEITEM
|
||||
// notifications - this makes deleting all items from a list ctrl
|
||||
// much faster
|
||||
*result = TRUE;
|
||||
return TRUE;
|
||||
|
||||
case LVN_DELETEITEM:
|
||||
{
|
||||
eventType = wxEVT_COMMAND_LIST_DELETE_ITEM;
|
||||
|
Reference in New Issue
Block a user