wxWindowCreate/DestroyEvent now derive from wxCommandEvent

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-04-08 21:55:02 +00:00
parent 82f640ebc2
commit cacdec1b9c
2 changed files with 2 additions and 4 deletions

View File

@@ -1369,7 +1369,7 @@ private:
wxEVT_DESTROY wxEVT_DESTROY
*/ */
class WXDLLEXPORT wxWindowCreateEvent : public wxEvent class WXDLLEXPORT wxWindowCreateEvent : public wxCommandEvent
{ {
DECLARE_DYNAMIC_CLASS(wxWindowCreateEvent) DECLARE_DYNAMIC_CLASS(wxWindowCreateEvent)
@@ -1379,7 +1379,7 @@ public:
wxWindow *GetWindow() const { return (wxWindow *)GetEventObject(); } wxWindow *GetWindow() const { return (wxWindow *)GetEventObject(); }
}; };
class WXDLLEXPORT wxWindowDestroyEvent : public wxEvent class WXDLLEXPORT wxWindowDestroyEvent : public wxCommandEvent
{ {
DECLARE_DYNAMIC_CLASS(wxWindowDestroyEvent) DECLARE_DYNAMIC_CLASS(wxWindowDestroyEvent)

View File

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