]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/statbar/statbar.cpp
don't use deprecated toolbar API
[wxWidgets.git] / samples / statbar / statbar.cpp
index 8915cd4c40c199cb5f4ad8f819ac847ede0cad6d..91cf5c9c90755e599ea8cdafc6e5b4d0f62f6d2f 100644 (file)
@@ -576,10 +576,7 @@ MyAboutDialog::MyAboutDialog(wxWindow *parent)
     sizerTop->Add(-1, 10, 1, wxGROW);
     sizerTop->Add(statbarBottom, 0, wxGROW);
 
     sizerTop->Add(-1, 10, 1, wxGROW);
     sizerTop->Add(statbarBottom, 0, wxGROW);
 
-    SetSizer(sizerTop);
-
-    sizerTop->Fit(this);
-    sizerTop->SetSizeHints(this);
+    SetSizerAndFit(sizerTop);
 }
 
 // ----------------------------------------------------------------------------
 }
 
 // ----------------------------------------------------------------------------