X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/196a75d48d1076cfa0922720c1b840d495fe2f3d..a899707131e8b94a628c44309517128707ef6b57:/src/msw/dialog.cpp

diff --git a/src/msw/dialog.cpp b/src/msw/dialog.cpp
index e009c383df..4fce3f8d47 100644
--- a/src/msw/dialog.cpp
+++ b/src/msw/dialog.cpp
@@ -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__