]> git.saurik.com Git - wxWidgets.git/commitdiff
the msw implementation even shows an ok button if it is not specified, we do the...
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 6 Mar 2003 16:32:14 +0000 (16:32 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 6 Mar 2003 16:32:14 +0000 (16:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/msgdlg.cpp
src/mac/msgdlg.cpp

index f7a4a0a7248189ccbb5de42250e094bbcc469a35..732a2f48bac3efb2f2e7f7cb8b7ab1c88bdda580 100644 (file)
@@ -120,7 +120,8 @@ int wxMessageDialog::ShowModal()
                 param.cancelButton     = 0;
             }
         }
-        else if (m_dialogStyle & wxOK)
+        // the msw implementation even shows an ok button if it is not specified, we'll do the same
+        else 
         {
             if (m_dialogStyle & wxCANCEL)
             {
@@ -142,10 +143,12 @@ int wxMessageDialog::ShowModal()
                 param.cancelButton     = 0;
             }
         }
+        /*
         else
         {
             skipDialog = true ;
         }
+        */
         
         param.position = kWindowDefaultPosition;
         if ( !skipDialog )
index f7a4a0a7248189ccbb5de42250e094bbcc469a35..732a2f48bac3efb2f2e7f7cb8b7ab1c88bdda580 100644 (file)
@@ -120,7 +120,8 @@ int wxMessageDialog::ShowModal()
                 param.cancelButton     = 0;
             }
         }
-        else if (m_dialogStyle & wxOK)
+        // the msw implementation even shows an ok button if it is not specified, we'll do the same
+        else 
         {
             if (m_dialogStyle & wxCANCEL)
             {
@@ -142,10 +143,12 @@ int wxMessageDialog::ShowModal()
                 param.cancelButton     = 0;
             }
         }
+        /*
         else
         {
             skipDialog = true ;
         }
+        */
         
         param.position = kWindowDefaultPosition;
         if ( !skipDialog )