X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be5a51fb592f3fa2ba38ac6cd1e488d6d806058c..f5766910b6731eb03e82371416e9778203396ce7:/samples/docvwmdi/docview.cpp diff --git a/samples/docvwmdi/docview.cpp b/samples/docvwmdi/docview.cpp index 652281b675..c3e0348ac7 100644 --- a/samples/docvwmdi/docview.cpp +++ b/samples/docvwmdi/docview.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -// #pragma implementation "docview.h" -#endif - /* * Purpose: Document/view architecture demo for wxWidgets class library - MDI */ @@ -107,11 +103,11 @@ bool MyApp::OnInit(void) frame->Centre(wxBOTH); #ifndef __WXMAC__ - frame->Show(TRUE); + frame->Show(true); #endif //ndef __WXMAC__ SetTopWindow(frame); - return TRUE; + return true; } int MyApp::OnExit(void) @@ -129,7 +125,7 @@ wxMDIChildFrame *MyApp::CreateChildFrame(wxDocument *doc, wxView *view, bool isC { //// Make a child frame wxDocMDIChildFrame *subframe = - new wxDocMDIChildFrame(doc, view, GetMainFrame(), -1, _T("Child Frame"), + new wxDocMDIChildFrame(doc, view, GetMainFrame(), wxID_ANY, _T("Child Frame"), wxPoint(10, 10), wxSize(300, 300), wxDEFAULT_FRAME_STYLE | wxNO_FULL_REPAINT_ON_RESIZE); @@ -201,7 +197,7 @@ END_EVENT_TABLE() MyFrame::MyFrame(wxDocManager *manager, wxFrame *frame, const wxString& title, const wxPoint& pos, const wxSize& size, long type): - wxDocMDIParentFrame(manager, frame, -1, title, pos, size, type, _T("myFrame")) + wxDocMDIParentFrame(manager, frame, wxID_ANY, title, pos, size, type, _T("myFrame")) { editMenu = (wxMenu *) NULL; }