added HasExtraStyle()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2007-04-22 20:30:39 +00:00
parent 3b170aa895
commit a2979ead8d
2 changed files with 14 additions and 0 deletions

View File

@ -1445,6 +1445,18 @@ Returns {\tt true} if this window has the current mouse capture.
\helpref{wxMouseCaptureChangedEvent}{wxmousecapturechangedevent}
\membersection{wxWindow::HasExtraStyle}\label{wxwindowhasextrastyle}
\constfunc{bool}{HasExtraStyle}{\param{int }{exFlag}}
Returns \texttt{true} if the window has the given \arg{exFlag} bit set in its
extra styles.
\wxheading{See also}
\helpref{SetExtraStyle}{wxwindowsetextrastyle}
\membersection{wxWindow::HasFlag}\label{wxwindowhasflag}
\constfunc{bool}{HasFlag}{\param{int }{flag}}

View File

@ -546,6 +546,8 @@ public:
virtual void SetExtraStyle(long exStyle) { m_exStyle = exStyle; }
long GetExtraStyle() const { return m_exStyle; }
bool HasExtraStyle(int exFlag) const { return (m_exStyle & exFlag) != 0; }
// make the window modal (all other windows unresponsive)
virtual void MakeModal(bool modal = true);