Fixed wxWindowCreateEvent and wxWindowDestroyEvent to set m_eventType
so the events can actually be caught by a handler. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -524,14 +524,16 @@ void wxQueryNewPaletteEvent::CopyObject(wxObject& obj_d) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxWindowCreateEvent::wxWindowCreateEvent(wxWindow *win)
|
wxWindowCreateEvent::wxWindowCreateEvent(wxWindow *win)
|
||||||
: wxEvent(wxEVT_CREATE)
|
: wxEvent()
|
||||||
{
|
{
|
||||||
|
SetEventType(wxEVT_CREATE);
|
||||||
SetEventObject(win);
|
SetEventObject(win);
|
||||||
}
|
}
|
||||||
|
|
||||||
wxWindowDestroyEvent::wxWindowDestroyEvent(wxWindow *win)
|
wxWindowDestroyEvent::wxWindowDestroyEvent(wxWindow *win)
|
||||||
: wxEvent(wxEVT_DESTROY)
|
: wxEvent()
|
||||||
{
|
{
|
||||||
|
SetEventType(wxEVT_DESTROY);
|
||||||
SetEventObject(win);
|
SetEventObject(win);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user