// ----------
virtual wxTreeItemId GetRootItem() const { return m_anchor; }
- virtual wxTreeItemId GetSelection() const { return m_current; }
+ virtual wxTreeItemId GetSelection() const
+ {
+ wxASSERT_MSG( !HasFlag(wxTR_MULTIPLE),
+ wxT("must use GetSelections() with this control") );
+
+ return m_current;
+ }
virtual size_t GetSelections(wxArrayTreeItemIds&) const;
virtual wxTreeItemId GetItemParent(const wxTreeItemId& item) const;
virtual bool SetBackgroundColour(const wxColour& colour);
virtual bool SetForegroundColour(const wxColour& colour);
- virtual void Freeze();
- virtual void Thaw();
virtual void Refresh(bool eraseBackground = true, const wxRect *rect = NULL);
virtual bool SetFont( const wxFont &font );
bool m_lastOnSame; // last click on the same item as prev
wxImageList *m_imageListButtons;
- int m_freezeCount;
int m_dragCount;
wxPoint m_dragStart;
wxGenericTreeItem *m_dropTarget;
// the common part of all ctors
void Init();
+ // overridden wxWindow methods
+ virtual void DoThaw();
+
// misc helpers
void SendDeleteEvent(wxGenericTreeItem *itemBeingDeleted);