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:
Vadim Zeitlin
2002-06-07 20:39:22 +00:00
parent 2edb0bdef6
commit bf43d750e6

View File

@@ -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: