]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dialog.cpp
document On{Open,Save}Document()
[wxWidgets.git] / src / msw / dialog.cpp
index e009c383dfa49d8e8341de3559fdbc586e82edbd..4fce3f8d479dff61bf79002bca691849a1e51862 100644 (file)
@@ -237,6 +237,9 @@ bool wxDialog::Show(bool show)
 
     if ( show )
     {
+        if (CanDoLayoutAdaptation())
+            DoLayoutAdaptation();
+
         // this usually will result in TransferDataToWindow() being called
         // which will change the controls values so do it before showing as
         // otherwise we could have some flicker
@@ -349,7 +352,7 @@ bool wxDialog::DoOK()
     wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, GetAffirmativeId());
     event.SetEventObject(this);
 
-    return GetEventHandler()->ProcessEvent(event);
+    return HandleWindowEvent(event);
 }
 #endif // __POCKETPC__