From: Vadim Zeitlin Date: Sun, 22 Apr 2007 20:30:39 +0000 (+0000) Subject: added HasExtraStyle() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a2979ead8d5f5f2023d30d05a3c2d55f7804e24a?ds=sidebyside added HasExtraStyle() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/latex/wx/window.tex b/docs/latex/wx/window.tex index 25520ffe4f..c64902d2ee 100644 --- a/docs/latex/wx/window.tex +++ b/docs/latex/wx/window.tex @@ -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}} diff --git a/include/wx/window.h b/include/wx/window.h index eaffc6b4d3..91a1ac180d 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -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);