]> git.saurik.com Git - wxWidgets.git/commitdiff
check that wxYES and wxNO are always used together as the native msg box can't use...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 10 Mar 2005 14:49:52 +0000 (14:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 10 Mar 2005 14:49:52 +0000 (14:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/msgdlg.cpp

index 5e94f0ebd7fed00815a49ab8e2e1107c9d6dc5b6..1e19a2c8a8e7fcff2649607099f9c5979686380f 100644 (file)
@@ -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;