From c9b9e020cab11094582a2b921bf9943f8f5d4e6f Mon Sep 17 00:00:00 2001 From: David Webster Date: Mon, 21 Jan 2002 14:32:57 +0000 Subject: [PATCH] Commit of merge git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/dialog.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/os2/dialog.cpp b/src/os2/dialog.cpp index 63f5abfe25..edc04a0d24 100644 --- a/src/os2/dialog.cpp +++ b/src/os2/dialog.cpp @@ -93,6 +93,12 @@ bool wxDialog::Create( )) return FALSE; SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT)); + + // + // Must defer setting the title until after dialog is created and sized + // + if (!rsTitle.IsNull()) + SetTitle(rsTitle); return TRUE; } // end of wxDialog::Create @@ -265,6 +271,8 @@ bool wxDialog::Show( InitDialog(); } + if (GetTitle().c_str()) + ::WinSetWindowText((HWND)GetHwnd(), GetTitle().c_str()); if (IsModal()) { if (bShow) -- 2.45.2