X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/691d944f7e7646df976c0fbd179a0756c1bb182d..e9cec36348072df16d6cd649f82a92c86ba3b662:/samples/docvwmdi/view.cpp diff --git a/samples/docvwmdi/view.cpp b/samples/docvwmdi/view.cpp index 37b2627687..0707d264aa 100644 --- a/samples/docvwmdi/view.cpp +++ b/samples/docvwmdi/view.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" @@ -54,7 +50,7 @@ bool DrawingView::OnCreate(wxDocument *doc, long WXUNUSED(flags) ) // X seems to require a forced resize int x, y; frame->GetSize(&x, &y); - frame->SetSize(wxDefaultPosition.x, wxDefaultPosition.y, x, y); + frame->SetSize(wxDefaultCoord, wxDefaultCoord, x, y); #endif frame->Show(true); Activate(true); @@ -110,7 +106,7 @@ bool DrawingView::OnClose(bool deleteWindow) canvas->view = (wxView *) NULL; canvas = (MyCanvas *) NULL; - wxString s(wxTheApp->GetAppName()); + wxString s(wxTheApp->GetAppDisplayName()); if (frame) frame->SetTitle(s); @@ -147,7 +143,7 @@ bool TextEditView::OnCreate(wxDocument *doc, long WXUNUSED(flags) ) // X seems to require a forced resize int x, y; frame->GetSize(&x, &y); - frame->SetSize(wxDefaultPosition.x, wxDefaultPosition.y, x, y); + frame->SetSize(wxDefaultCoord, wxDefaultCoord, x, y); #endif frame->Show(true);