wxSTAY_ON_TOP support in wxMessageBox (patch 581826)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-07-17 23:36:53 +00:00
parent 74bdbc46c3
commit a7fd7c7851
2 changed files with 4 additions and 0 deletions

View 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}
}

View 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