- if (m_dialogStyle & wxOK)
- {
- if (m_dialogStyle & wxCANCEL)
- msStyle = MB_OKCANCEL;
- else
- msStyle = MB_OK;
- }
- if (m_dialogStyle & wxICON_EXCLAMATION)
- msStyle |= MB_ICONEXCLAMATION;
- else if (m_dialogStyle & wxICON_HAND)
- msStyle |= MB_ICONHAND;
- else if (m_dialogStyle & wxICON_INFORMATION)
- msStyle |= MB_ICONINFORMATION;
- else if (m_dialogStyle & wxICON_QUESTION)
- msStyle |= MB_ICONQUESTION;
+ if (m_dialogStyle & wxNO_DEFAULT)
+ msStyle |= MB_DEFBUTTON2;
+ }
+
+ if (m_dialogStyle & wxOK)
+ {
+ if (m_dialogStyle & wxCANCEL)
+ msStyle = MB_OKCANCEL;
+ else
+ msStyle = MB_OK;
+ }
+ if (m_dialogStyle & wxICON_EXCLAMATION)
+ msStyle |= MB_ICONEXCLAMATION;
+ else if (m_dialogStyle & wxICON_HAND)
+ msStyle |= MB_ICONHAND;
+ else if (m_dialogStyle & wxICON_INFORMATION)
+ msStyle |= MB_ICONINFORMATION;
+ else if (m_dialogStyle & wxICON_QUESTION)
+ msStyle |= MB_ICONQUESTION;