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:
parent
09f277d683
commit
2388d9b331
@ -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); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user