X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2049ba38adafa0ec146880de29f26e32dd69a125..11dfaa5f1dab5a787dc711c8d9881280509a50ae:/samples/joytest/joytest.cpp?ds=sidebyside diff --git a/samples/joytest/joytest.cpp b/samples/joytest/joytest.cpp index 862663ff30..900fe3b686 100644 --- a/samples/joytest/joytest.cpp +++ b/samples/joytest/joytest.cpp @@ -20,8 +20,8 @@ #include "wx/wx.h" #endif -#include -#include +#include +#include #include "joytest.h" @@ -52,7 +52,7 @@ bool MyApp::OnInit(void) // Create the main frame window frame = new MyFrame(NULL, "Joystick Demo", wxPoint(0, 0), wxSize(500, 400), - wxDEFAULT_FRAME | wxHSCROLL | wxVSCROLL); + wxDEFAULT_FRAME_STYLE | wxHSCROLL | wxVSCROLL); // Give it an icon (this is ignored in MDI mode: uses resources) #ifdef __WXMSW__ @@ -164,8 +164,3 @@ void MyFrame::OnActivate(wxActivateEvent& event) if (event.GetActive() && canvas) canvas->SetFocus(); } - -bool MyFrame::OnClose(void) -{ - return TRUE; -} \ No newline at end of file