X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbf1f0e5cffb8c01696eb26e254857a61f017d70..80d2803f703d1b238f42725504f08266ef02defe:/samples/joytest/joytest.cpp diff --git a/samples/joytest/joytest.cpp b/samples/joytest/joytest.cpp index 6ec7c6fa53..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,10 +52,10 @@ 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 __WINDOWS__ +#ifdef __WXMSW__ frame->SetIcon(wxIcon("joyicon")); #endif #ifdef __X__ @@ -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