don't override OnIconized() in the sample, the bug this was working around is now fixed in wxMSW itself
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -72,7 +72,6 @@ BEGIN_EVENT_TABLE(MyFrame, wxMDIParentFrame)
|
|||||||
EVT_MENU(MDI_QUIT, MyFrame::OnQuit)
|
EVT_MENU(MDI_QUIT, MyFrame::OnQuit)
|
||||||
|
|
||||||
EVT_CLOSE(MyFrame::OnClose)
|
EVT_CLOSE(MyFrame::OnClose)
|
||||||
EVT_ICONIZE(MyFrame::OnIconize)
|
|
||||||
EVT_SIZE(MyFrame::OnSize)
|
EVT_SIZE(MyFrame::OnSize)
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
@@ -301,12 +300,6 @@ void MyFrame::OnSize(wxSizeEvent&
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyFrame::OnIconize(wxIconizeEvent& event)
|
|
||||||
{
|
|
||||||
wxSizeEvent e;
|
|
||||||
OnSize (e) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if wxUSE_TOOLBAR
|
#if wxUSE_TOOLBAR
|
||||||
void MyFrame::InitToolBar(wxToolBar* toolBar)
|
void MyFrame::InitToolBar(wxToolBar* toolBar)
|
||||||
{
|
{
|
||||||
|
@@ -46,7 +46,6 @@ public:
|
|||||||
void InitToolBar(wxToolBar* toolBar);
|
void InitToolBar(wxToolBar* toolBar);
|
||||||
|
|
||||||
void OnSize(wxSizeEvent& event);
|
void OnSize(wxSizeEvent& event);
|
||||||
void OnIconize(wxIconizeEvent& event);
|
|
||||||
void OnAbout(wxCommandEvent& event);
|
void OnAbout(wxCommandEvent& event);
|
||||||
void OnNewWindow(wxCommandEvent& event);
|
void OnNewWindow(wxCommandEvent& event);
|
||||||
void OnQuit(wxCommandEvent& event);
|
void OnQuit(wxCommandEvent& event);
|
||||||
|
Reference in New Issue
Block a user