summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
721b839)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24619
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// and show it (the frames, unlike simple controls, are not shown when
// created initially)
// and show it (the frames, unlike simple controls, are not shown when
// created initially)
// success: wxApp::OnRun() will be called which will enter the main message
// success: wxApp::OnRun() will be called which will enter the main message
- // loop and the application will run. If we returned FALSE here, the
+ // loop and the application will run. If we returned false here, the
// application would exit immediately.
// application would exit immediately.
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------
// frame constructor
MyFrame::MyFrame(const wxString& title)
// frame constructor
MyFrame::MyFrame(const wxString& title)
- : wxFrame(NULL, -1, title)
+ : wxFrame(NULL, wxID_ANY, title)
{
// set the frame icon
SetIcon(wxICON(mondrian));
{
// set the frame icon
SetIcon(wxICON(mondrian));
void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
{
void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
{
- // TRUE is to force the frame to close
- Close(TRUE);
+ // true is to force the frame to close
+ Close(true);
}
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
}
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))