git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40286
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void UnselectAllChildren( wxGenericTreeItem *item );
void ChildrenClosing(wxGenericTreeItem* item);
void UnselectAllChildren( wxGenericTreeItem *item );
void ChildrenClosing(wxGenericTreeItem* item);
+ void DoDirtyProcessing();
+
private:
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxGenericTreeCtrl)
private:
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxGenericTreeCtrl)
#if defined( __WXMSW__ ) || defined(__WXMAC__)
Update();
#else
#if defined( __WXMSW__ ) || defined(__WXMAC__)
Update();
#else
#endif
wxGenericTreeItem *gitem = (wxGenericTreeItem*) item.m_pItem;
#endif
wxGenericTreeItem *gitem = (wxGenericTreeItem*) item.m_pItem;
#if defined( __WXMSW__ ) || defined(__WXMAC__)
Update();
#else
#if defined( __WXMSW__ ) || defined(__WXMAC__)
Update();
#else
#endif
// TODO: use textCtrlClass here to create the control of correct class
#endif
// TODO: use textCtrlClass here to create the control of correct class
SelectItem(GetRootItem());
}
SelectItem(GetRootItem());
}
- /* after all changes have been done to the tree control,
- * we actually redraw the tree when everything is over */
-
- if (!m_dirty) return;
- if (m_freezeCount) return;
-
- m_dirty = false;
-
- CalculatePositions();
- Refresh();
- AdjustMyScrollbars();
+ // after all changes have been done to the tree control,
+ // actually redraw the tree when everything is over
+ if (m_dirty)
+ DoDirtyProcessing();
}
void wxGenericTreeCtrl::CalculateSize( wxGenericTreeItem *item, wxDC &dc )
}
void wxGenericTreeCtrl::CalculateSize( wxGenericTreeItem *item, wxDC &dc )
#endif // WXWIN_COMPATIBILITY_2_4
#endif // WXWIN_COMPATIBILITY_2_4
+void wxGenericTreeCtrl::DoDirtyProcessing()
+{
+ if (m_freezeCount)
+ return;
+
+ m_dirty = false;
+
+ CalculatePositions();
+ Refresh();
+ AdjustMyScrollbars();
+}
+