X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c01c5951189e13b8b4a5d7b288b54d4a57a30f8..f8a7dd5f4162313d76ae2e2df46740f3a9e49071:/include/wx/msw/treectrl.h diff --git a/include/wx/msw/treectrl.h b/include/wx/msw/treectrl.h index 41b8df96f1..4c621980ef 100644 --- a/include/wx/msw/treectrl.h +++ b/include/wx/msw/treectrl.h @@ -287,6 +287,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; @@ -318,6 +326,9 @@ private: // whether we need to trigger a state image click event bool m_triggerStateImageClick; + // whether we need to deselect other items on mouse up + bool m_mouseUpDeselect; + friend class wxTreeItemIndirectData; friend class wxTreeSortHelper;