]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/dialog.cpp
added an explicit accessor to query the default key value
[wxWidgets.git] / 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)