+ 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;
+
+ if (hWnd)
+ msStyle |= MB_APPLMODAL;