fix tree icon refresh after collapsing a branch (patch 565294)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2573,8 +2573,6 @@ bool wxTreeCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
|
||||
// comctl32.dll or our code?
|
||||
{
|
||||
NM_TREEVIEW* tv = (NM_TREEVIEW *)lParam;
|
||||
if ( tv->action == TVE_EXPAND )
|
||||
{
|
||||
wxTreeItemId id = (WXHTREEITEM)tv->itemNew.hItem;
|
||||
|
||||
int image = GetItemImage(id, wxTreeItemIcon_Expanded);
|
||||
@@ -2583,7 +2581,6 @@ bool wxTreeCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
|
||||
RefreshItem(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case TVN_GETDISPINFO:
|
||||
|
Reference in New Issue
Block a user