]> git.saurik.com Git - wxWidgets.git/commitdiff
wxSTAY_ON_TOP support in wxMessageBox (patch 581826)
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 17 Jul 2002 23:36:53 +0000 (23:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 17 Jul 2002 23:36:53 +0000 (23:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/msgdlg.tex
src/msw/msgdlg.cpp

index 3caf92f46af655d693a7668c9568fd4eed01ed86..497758e37a83fb65e696608b2057b765cb4a149e 100644 (file)
@@ -51,6 +51,7 @@ Constructor. Use \helpref{wxMessageDialog::ShowModal}{wxmessagedialogshowmodal}
 \twocolitem{{\bf wxICON\_ERROR}}{Shows an error icon - the same as wxICON\_HAND.}
 \twocolitem{{\bf wxICON\_QUESTION}}{Shows a question mark icon.}
 \twocolitem{{\bf wxICON\_INFORMATION}}{Shows an information (i) icon.}
+\twocolitem{{\bf wxSTAY\_ON\_TOP}}{The message box stays on top of all other window, even those of the other applications (Windows only).}
 \end{twocollist}
 }
 
index ec05f72a379435abb6287e1b50f9b6728e98b106..834fbdb022943388947b4915608c1e6c812a4b46 100644 (file)
@@ -93,6 +93,9 @@ int wxMessageDialog::ShowModal()
     else if (m_dialogStyle & wxICON_QUESTION)
         msStyle |= MB_ICONQUESTION;
 
+    if ( m_dialogStyle & wxSTAY_ON_TOP )
+        msStyle |= MB_TOPMOST;
+
     if (hWnd)
         msStyle |= MB_APPLMODAL;
     else