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:
Robin Dunn 1999-12-29 22:07:53 +00:00
parent 15807266c6
commit cfe17b7435

View File

@ -524,14 +524,16 @@ void wxQueryNewPaletteEvent::CopyObject(wxObject& obj_d) const
}
wxWindowCreateEvent::wxWindowCreateEvent(wxWindow *win)
: wxEvent(wxEVT_CREATE)
: wxEvent()
{
SetEventType(wxEVT_CREATE);
SetEventObject(win);
}
wxWindowDestroyEvent::wxWindowDestroyEvent(wxWindow *win)
: wxEvent(wxEVT_DESTROY)
: wxEvent()
{
SetEventType(wxEVT_DESTROY);
SetEventObject(win);
}