+ virtual int DoGetItemState(const wxTreeItemId& item) const;
+ virtual void DoSetItemState(const wxTreeItemId& item, int state);
+
+ virtual wxTreeItemId DoInsertItem(const wxTreeItemId& parent,
+ size_t pos,
+ const wxString& text,
+ int image, int selectedImage,
+ wxTreeItemData *data);
+ virtual wxTreeItemId DoInsertAfter(const wxTreeItemId& parent,
+ const wxTreeItemId& idPrevious,
+ const wxString& text,
+ int image = -1, int selImage = -1,
+ wxTreeItemData *data = NULL);
+ virtual wxTreeItemId DoTreeHitTest(const wxPoint& point, int& flags) const;
+
+ // obtain the user data for the lParam member of TV_ITEM
+ class wxTreeItemParam *GetItemParam(const wxTreeItemId& item) const;
+
+ // update the event to include the items client data and pass it to
+ // HandleWindowEvent(), return true if it processed it
+ bool HandleTreeEvent(wxTreeEvent& event) const;
+
+ // pass the event to HandleTreeEvent() and return true if the event was
+ // either unprocessed or not vetoed
+ bool IsTreeEventAllowed(wxTreeEvent& event) const
+ {
+ return !HandleTreeEvent(event) || event.IsAllowed();
+ }
+
+ // generate a wxEVT_KEY_DOWN event from the specified WPARAM/LPARAM values
+ // having the same meaning as for WM_KEYDOWN, return true if it was
+ // processed
+ bool MSWHandleTreeKeyDownEvent(WXWPARAM wParam, WXLPARAM lParam);
+
+ // handle a key event in a multi-selection control, should be only called
+ // for keys which can be used to change the selection
+ //
+ // return true if the key was processed, false otherwise
+ bool MSWHandleSelectionKey(unsigned vkey);
+