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
This commit is contained in:
parent
5e63b67d36
commit
6aafd4a27a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user