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:
@@ -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)
|
||||||
|
|
||||||
|
@@ -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);
|
||||||
|
Reference in New Issue
Block a user