Commit of merge
authorDavid Webster <Dave.Webster@bhmi.com>
Mon, 21 Jan 2002 14:32:57 +0000 (14:32 +0000)
committerDavid Webster <Dave.Webster@bhmi.com>
Mon, 21 Jan 2002 14:32:57 +0000 (14:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/dialog.cpp

index 63f5abfe257dcd5e131c3fda925efc1072931d97..edc04a0d243b4f1b784df71baa9cd0e4683af43e 100644 (file)
@@ -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)