X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b7346a70cfafb3c239edfb47b62c63a67240a93c..14b72bf5a6b575f2be880eadc3e7f0131afe889a:/samples/splitter/test.cpp diff --git a/samples/splitter/test.cpp b/samples/splitter/test.cpp index ba3732986c..4d749c959b 100644 --- a/samples/splitter/test.cpp +++ b/samples/splitter/test.cpp @@ -113,7 +113,7 @@ MyFrame::MyFrame(wxFrame* frame, const wxString& title, const wxPoint& pos, cons wxFrame(frame, -1, title, pos, size) { // set the icon -#ifdef __WINDOWS__ +#ifdef __WXMSW__ SetIcon(wxIcon("mondrian")); #endif #ifdef __X__ @@ -163,12 +163,12 @@ bool MyFrame::OnClose() return TRUE; } -void MyFrame::Quit(wxCommandEvent& event) +void MyFrame::Quit(wxCommandEvent& WXUNUSED(event) ) { Close(TRUE); } -void MyFrame::SplitHorizontal(wxCommandEvent& event) +void MyFrame::SplitHorizontal(wxCommandEvent& WXUNUSED(event) ) { if ( splitter->IsSplit() ) splitter->Unsplit(); @@ -177,7 +177,7 @@ void MyFrame::SplitHorizontal(wxCommandEvent& event) splitter->SplitHorizontally( leftCanvas, rightCanvas ); } -void MyFrame::SplitVertical(wxCommandEvent& event) +void MyFrame::SplitVertical(wxCommandEvent& WXUNUSED(event) ) { if ( splitter->IsSplit() ) splitter->Unsplit(); @@ -186,7 +186,7 @@ void MyFrame::SplitVertical(wxCommandEvent& event) splitter->SplitVertically( leftCanvas, rightCanvas ); } -void MyFrame::Unsplit(wxCommandEvent& event) +void MyFrame::Unsplit(wxCommandEvent& WXUNUSED(event) ) { if ( splitter->IsSplit() ) splitter->Unsplit(); @@ -211,6 +211,8 @@ void MyFrame::OnIdle(wxIdleEvent& event) { if ( GetStatusBar()->GetStatusText(0) != "Ready" ) SetStatusText("Ready"); + + wxFrame::OnIdle(event); } MyCanvas::MyCanvas(wxWindow* parent, int x, int y, int w, int h) :