From 6aafd4a27ae4d292ec111528c05a0a26fd0142c4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 10 Mar 2005 14:49:52 +0000 Subject: [PATCH] check that wxYES and wxNO are always used together as the native msg box can't use them separately (related to bug 1160422) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/msgdlg.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/msw/msgdlg.cpp b/src/msw/msgdlg.cpp index 5e94f0ebd7..1e19a2c8a8 100644 --- a/src/msw/msgdlg.cpp +++ b/src/msw/msgdlg.cpp @@ -79,6 +79,9 @@ int wxMessageDialog::ShowModal() unsigned int msStyle = MB_OK; if (m_dialogStyle & wxYES_NO) { + wxASSERT_MSG( (m_dialogStyle & wxYES_NO) == wxYES_NO, + _T("wxYES and wxNO may only be used together under MSW") ); + #if !(defined(__SMARTPHONE__) && defined(__WXWINCE__)) if (m_dialogStyle & wxCANCEL) msStyle = MB_YESNOCANCEL; -- 2.45.2