// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-// #pragma implementation "docview.h"
-#endif
-
/*
- * Purpose: Document/view architecture demo for wxWindows class library - MDI
+ * Purpose: Document/view architecture demo for wxWidgets class library - MDI
*/
#ifdef __WXMSW__
frame->SetIcon(wxIcon(_T("doc")));
#endif
-#ifdef __X__
- frame->SetIcon(wxIcon(_T("doc.xbm")));
-#endif
//// Make a menubar
wxMenu *file_menu = new wxMenu;
frame->Centre(wxBOTH);
#ifndef __WXMAC__
- frame->Show(TRUE);
+ frame->Show(true);
#endif //ndef __WXMAC__
SetTopWindow(frame);
- return TRUE;
+ return true;
}
int MyApp::OnExit(void)
{
//// 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);
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;
}