// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-// #pragma implementation
-#endif
-
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#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
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()
void MyFrame::OnQuit( wxCommandEvent& WXUNUSED(event) )
{
- Close(TRUE);
+ Close(true);
}
void MyFrame::OnTestDialog(wxCommandEvent& WXUNUSED(event) )
dialog->ShowModal();
}
- dialog->Close(TRUE);
+ dialog->Close(true);
}
BEGIN_EVENT_TABLE(MyDialog, wxDialog)