git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3622 
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
       msStyle = MB_YESNOCANCEL;
     else
       msStyle = MB_YESNO;
+
+    if (m_dialogStyle & wxNO_DEFAULT)
+        msStyle |= MB_DEFBUTTON2;
   }
+
   if (m_dialogStyle & wxOK)
   {
     if (m_dialogStyle & wxCANCEL)
     msStyle |= MB_APPLMODAL;
   else
     msStyle |= MB_TASKMODAL;
-    
+
   int msAns = MessageBox(hWnd, (LPCTSTR)(const wxChar *)m_message, (LPCTSTR)(const wxChar *)m_caption, msStyle);
   int ans = wxOK;
   switch (msAns)