Made wxNO_DEFAULT set the "no" button as the default, according to the docs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 1999-09-13 02:50:35 +00:00
parent 90bb2919de
commit 93c95e18f4

View File

@ -61,7 +61,11 @@ int wxMessageDialog::ShowModal(void)
msStyle = MB_YESNOCANCEL;
else
msStyle = MB_YESNO;
if (m_dialogStyle & wxNO_DEFAULT)
msStyle |= MB_DEFBUTTON2;
}
if (m_dialogStyle & wxOK)
{
if (m_dialogStyle & wxCANCEL)