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
This commit is contained in:
@@ -265,10 +265,14 @@ private:
|
|||||||
// descriptions below
|
// descriptions below
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
class WXDLLEXPORT wxTreeCtrlBase;
|
||||||
|
|
||||||
class WXDLLEXPORT wxTreeEvent : public wxNotifyEvent
|
class WXDLLEXPORT wxTreeEvent : public wxNotifyEvent
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxTreeEvent(wxEventType commandType = wxEVT_NULL, int id = 0);
|
wxTreeEvent(wxEventType commandType,
|
||||||
|
wxTreeCtrlBase *tree,
|
||||||
|
const wxTreeItemId &item = wxTreeItemId());
|
||||||
wxTreeEvent(const wxTreeEvent& event);
|
wxTreeEvent(const wxTreeEvent& event);
|
||||||
|
|
||||||
virtual wxEvent *Clone() const { return new wxTreeEvent(*this); }
|
virtual wxEvent *Clone() const { return new wxTreeEvent(*this); }
|
||||||
|
Reference in New Issue
Block a user