CollapseAndReset() fixed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-03-24 21:56:08 +00:00
parent 8cd850693f
commit dd3646fd30
3 changed files with 17 additions and 6 deletions

View File

@@ -671,8 +671,10 @@ void wxTreeCtrl::DeleteAllItems()
void wxTreeCtrl::DoExpand(const wxTreeItemId& item, int flag)
{
wxASSERT_MSG( flag == TVE_COLLAPSE || flag == TVE_COLLAPSERESET ||
flag == TVE_EXPAND || flag == TVE_TOGGLE,
wxASSERT_MSG( flag == TVE_COLLAPSE ||
flag == (TVE_COLLAPSE | TVE_COLLAPSERESET) ||
flag == TVE_EXPAND ||
flag == TVE_TOGGLE,
"Unknown flag in wxTreeCtrl::DoExpand" );
// TreeView_Expand doesn't send TVN_ITEMEXPAND(ING) messages, so we must
@@ -712,7 +714,7 @@ void wxTreeCtrl::Collapse(const wxTreeItemId& item)
void wxTreeCtrl::CollapseAndReset(const wxTreeItemId& item)
{
DoExpand(item, TVE_COLLAPSERESET);
DoExpand(item, TVE_COLLAPSE | TVE_COLLAPSERESET);
}
void wxTreeCtrl::Toggle(const wxTreeItemId& item)