From 2388d9b331a37bbab59db42e06bc8a05380fb813 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 27 Jun 2006 18:49:06 +0000 Subject: [PATCH] added a wxTreeEvent ctor taking the associated wxTreeCtrl and optional wxTreeItemId; this reduces code duplication and also allows us to easily ensure that client data pointer is set properly for all events (it was never initialized before) (replaces patch 1503531) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/treebase.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/wx/treebase.h b/include/wx/treebase.h index 92c7644412..d54fd49b30 100644 --- a/include/wx/treebase.h +++ b/include/wx/treebase.h @@ -265,11 +265,15 @@ private: // descriptions below // ---------------------------------------------------------------------------- +class WXDLLEXPORT wxTreeCtrlBase; + class WXDLLEXPORT wxTreeEvent : public wxNotifyEvent { public: - wxTreeEvent(wxEventType commandType = wxEVT_NULL, int id = 0); - wxTreeEvent(const wxTreeEvent & event); + wxTreeEvent(wxEventType commandType, + wxTreeCtrlBase *tree, + const wxTreeItemId &item = wxTreeItemId()); + wxTreeEvent(const wxTreeEvent& event); virtual wxEvent *Clone() const { return new wxTreeEvent(*this); } -- 2.45.2