X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d301c440937fc3f9dda237d2b07da1a203fc61c8..c5ba48512424b7e543cadfccef304fe170bdf910:/include/wx/msw/treectrl.h diff --git a/include/wx/msw/treectrl.h b/include/wx/msw/treectrl.h index e2b76ae601..25461a87de 100644 --- a/include/wx/msw/treectrl.h +++ b/include/wx/msw/treectrl.h @@ -162,6 +162,7 @@ public: virtual void Unselect(); virtual void UnselectAll(); virtual void SelectItem(const wxTreeItemId& item, bool select = true); + virtual void SelectChildren(const wxTreeItemId& parent); virtual void EnsureVisible(const wxTreeItemId& item); virtual void ScrollTo(const wxTreeItemId& item); @@ -276,6 +277,7 @@ private: void DoToggleItemSelection(const wxTreeItemId& item); void DoUnselectAll(); + void DoSelectChildren(const wxTreeItemId& parent); void DeleteTextCtrl(); @@ -287,6 +289,14 @@ private: void ClearFocusedItem(); void SetFocusedItem(const wxTreeItemId& item); + // check if the given flags (taken from TV_HITTESTINFO structure) + // indicate a position "on item": this is less trivial than just checking + // for TVHT_ONITEM because we consider that points to the left and right of + // item text are also "on item" when wxTR_FULL_ROW_HIGHLIGHT is used as the + // item visually spans the entire breadth of the window then + bool MSWIsOnItem(unsigned flags) const; + + // the hash storing the items attributes (indexed by item ids) wxMapTreeAttr m_attrs;