X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d96cdd4a885886d1c76c6f4cb1a7eefba34b3d10..3abcf424a3e250f5537f9f076d3fb86a925e2547:/contrib/samples/deprecated/resource/resource.cpp diff --git a/contrib/samples/deprecated/resource/resource.cpp b/contrib/samples/deprecated/resource/resource.cpp index 49ae380361..7d0bb7b9c8 100644 --- a/contrib/samples/deprecated/resource/resource.cpp +++ b/contrib/samples/deprecated/resource/resource.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -// #pragma implementation -#endif - // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" @@ -103,9 +99,9 @@ bool MyApp::OnInit(void) #endif // Create the main frame window - frame = new MyFrame( (wxFrame *) NULL, -1, + frame = new MyFrame( (wxFrame *) NULL, wxID_ANY, wxT("wxWidgets Resource Sample"), - wxPoint(-1, -1), wxSize(300, 250) ); + wxDefaultPosition, wxSize(300, 250) ); #if wxUSE_STATUSBAR // Give it a status line @@ -118,13 +114,13 @@ bool MyApp::OnInit(void) frame->SetMenuBar(menu_bar); // Make a panel - frame->panel = new MyPanel( frame, -1, wxPoint(0, 0), wxSize(400, 400), + frame->panel = new MyPanel( frame, wxID_ANY, wxPoint(0, 0), wxSize(400, 400), 0, wxT("MyMainFrame") ); - frame->Show(TRUE); + frame->Show(true); SetTopWindow(frame); - return TRUE; + return true; } MyApp::~MyApp() @@ -181,7 +177,7 @@ void MyFrame::OnAbout( wxCommandEvent& WXUNUSED(event) ) void MyFrame::OnQuit( wxCommandEvent& WXUNUSED(event) ) { - Close(TRUE); + Close(true); } void MyFrame::OnTestDialog(wxCommandEvent& WXUNUSED(event) ) @@ -199,7 +195,7 @@ void MyFrame::OnTestDialog(wxCommandEvent& WXUNUSED(event) ) dialog->ShowModal(); } - dialog->Close(TRUE); + dialog->Close(true); } BEGIN_EVENT_TABLE(MyDialog, wxDialog)