X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3857173d3c186214cbc73ce764d122d5cf7b98d6..89b4415803685b243946e4941522be8232621fa6:/src/os2/dialog.cpp diff --git a/src/os2/dialog.cpp b/src/os2/dialog.cpp index 12d98447d1..abb905f2f8 100644 --- a/src/os2/dialog.cpp +++ b/src/os2/dialog.cpp @@ -212,6 +212,9 @@ bool wxDialog::Show( bool bShow ) if (bShow) { + 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 @@ -222,7 +225,7 @@ bool wxDialog::Show( bool bShow ) wxString title = GetTitle(); if (!title.empty()) - ::WinSetWindowText((HWND)GetHwnd(), (PSZ)title.c_str()); + ::WinSetWindowText((HWND)GetHwnd(), title.c_str()); if ( bShow ) {