]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/docvwmdi/view.cpp
extracted wxGtkString in a separate file, it's also needed by wxX11
[wxWidgets.git] / samples / docvwmdi / view.cpp
index 37b262768795bd1a9ebb50bafe9929fbd2d5ccf8..6bb0129450344004e5b707c3e92daa6a53332ef6 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"
 
@@ -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);
@@ -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);