]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/editlbox/editlbox.cpp
Layout improvements for CalendarCtrl
[wxWidgets.git] / samples / editlbox / editlbox.cpp
index 66a91d19fe970fbaf776d3378ef79c4ad6d6d487..a317e4edeb1636686b69c5fe543e619124c6b2da 100644 (file)
@@ -48,8 +48,7 @@ bool MyApp::OnInit()
     sizer->Add(5,5);
 
     sizer->Add(new wxButton(&dlg, wxID_OK, _("OK")), 0, wxALIGN_RIGHT | wxALL, 10);
-    dlg.SetSizer(sizer);
-    sizer->Fit(&dlg);
+    dlg.SetSizerAndFit(sizer);
     dlg.Centre();
 
     dlg.ShowModal();