diff --git a/samples/mdi/mdi.cpp b/samples/mdi/mdi.cpp index 161b1d84c3..24f0741ccb 100644 --- a/samples/mdi/mdi.cpp +++ b/samples/mdi/mdi.cpp @@ -72,7 +72,7 @@ BEGIN_EVENT_TABLE(MyFrame, wxMDIParentFrame) EVT_MENU(MDI_QUIT, MyFrame::OnQuit) EVT_CLOSE(MyFrame::OnClose) - + EVT_ICONIZE(MyFrame::OnIconize) EVT_SIZE(MyFrame::OnSize) END_EVENT_TABLE() @@ -301,6 +301,12 @@ void MyFrame::OnSize(wxSizeEvent& #endif } +void MyFrame::OnIconize(wxIconizeEvent& event) +{ + wxSizeEvent e; + OnSize (e) ; +} + #if wxUSE_TOOLBAR void MyFrame::InitToolBar(wxToolBar* toolBar) { diff --git a/samples/mdi/mdi.h b/samples/mdi/mdi.h index d0d6c422e1..62e3551f24 100644 --- a/samples/mdi/mdi.h +++ b/samples/mdi/mdi.h @@ -46,6 +46,7 @@ public: void InitToolBar(wxToolBar* toolBar); void OnSize(wxSizeEvent& event); + void OnIconize(wxIconizeEvent& event); void OnAbout(wxCommandEvent& event); void OnNewWindow(wxCommandEvent& event); void OnQuit(wxCommandEvent& event);