]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/help/demo.cpp
Add event based Drop API
[wxWidgets.git] / samples / help / demo.cpp
index 7749c96fc8b9831d82d4a0e5478825b607b8720c..74574c239f24b988b9db6d5b3a3d920d90183219 100644 (file)
@@ -711,10 +711,7 @@ MyModalDialog::MyModalDialog(wxWindow *parent)
     sizerTop->Add(text, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxALL, 5 );
     sizerTop->Add(sizerRow, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5 );
 
-    SetSizer(sizerTop);
-
-    sizerTop->SetSizeHints(this);
-    sizerTop->Fit(this);
+    SetSizerAndFit(sizerTop);
 
     btnOK->SetFocus();
     btnOK->SetDefault();