From c4a49e11f76f584b5a456ff969750440f8a1b5a2 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 6 Mar 2003 16:32:14 +0000 Subject: [PATCH] the msw implementation even shows an ok button if it is not specified, we do the same git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/msgdlg.cpp | 5 ++++- src/mac/msgdlg.cpp | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/mac/carbon/msgdlg.cpp b/src/mac/carbon/msgdlg.cpp index f7a4a0a724..732a2f48ba 100644 --- a/src/mac/carbon/msgdlg.cpp +++ b/src/mac/carbon/msgdlg.cpp @@ -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 ) diff --git a/src/mac/msgdlg.cpp b/src/mac/msgdlg.cpp index f7a4a0a724..732a2f48ba 100644 --- a/src/mac/msgdlg.cpp +++ b/src/mac/msgdlg.cpp @@ -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 ) -- 2.45.2