]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/mdi.cpp
Applied patch for stipppled brushes,
[wxWidgets.git] / src / gtk1 / mdi.cpp
index 13c558712add7d5d45eff07f9608cb0fe0abe48d..0b98599d59e20200bcb05c71852cb303986a2af3 100644 (file)
@@ -409,7 +409,12 @@ bool wxMDIClientWindow::CreateClient( wxMDIParentFrame *parent, long style )
 
     m_insertCallback = (wxInsertChildFunction)wxInsertChildInMDI;
 
-    PreCreation( parent, -1, wxPoint(10,10), wxSize(100,100), style, "wxMDIClientWindow" );
+    if (!PreCreation( parent, wxDefaultPosition, wxDefaultSize ) ||
+        !CreateBase( parent, -1, wxDefaultPosition, wxDefaultSize, style, wxDefaultValidator, _T("wxMDIClientWindow") ))
+    {
+        wxFAIL_MSG( _T("wxMDIClientWindow creation failed") );
+       return FALSE;
+    }
 
     m_widget = gtk_notebook_new();