]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/docview/view.cpp
removed ANSI configs from VisualC++ project files
[wxWidgets.git] / samples / docview / view.cpp
index a41b00aa0d3517343d1dee943813ef0a69c58dab..e48c269d8f22e8034728558810665e7e2261a8b9 100644 (file)
@@ -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"
 
@@ -57,7 +53,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);
     }
@@ -131,7 +127,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);
     
@@ -168,7 +164,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);