+ if (wxStyle & wxNO_DEFAULT)
+ msStyle |= MB_DEFBUTTON2;
+ }
+
+ if (wxStyle & wxOK)
+ {
+ if (wxStyle & wxCANCEL)
+ msStyle = MB_OKCANCEL;
+ else
+ msStyle = MB_OK;
+ }
+ if (wxStyle & wxICON_EXCLAMATION)
+ msStyle |= MB_ICONEXCLAMATION;
+ else if (wxStyle & wxICON_HAND)
+ msStyle |= MB_ICONHAND;
+ else if (wxStyle & wxICON_INFORMATION)
+ msStyle |= MB_ICONINFORMATION;
+ else if (wxStyle & wxICON_QUESTION)
+ msStyle |= MB_ICONQUESTION;
+
+ if ( wxStyle & wxSTAY_ON_TOP )
+ msStyle |= MB_TOPMOST;
+
+#ifndef __WXWINCE__
+ if ( wxTheApp->GetLayoutDirection() == wxLayout_RightToLeft )
+ msStyle |= MB_RTLREADING | MB_RIGHT;
+#endif
+
+ if (hWnd)
+ msStyle |= MB_APPLMODAL;