added a small helper ToggleWindowStyle() function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -506,9 +506,14 @@ public:
|
||||
void SetWindowStyle( long style ) { SetWindowStyleFlag(style); }
|
||||
long GetWindowStyle() const { return GetWindowStyleFlag(); }
|
||||
|
||||
// check if the flag is set
|
||||
bool HasFlag(int flag) const { return (m_windowStyle & flag) != 0; }
|
||||
virtual bool IsRetained() const { return HasFlag(wxRETAINED); }
|
||||
|
||||
// turn the flag on if it had been turned off before and vice versa,
|
||||
// return true if the flag is currently turned on
|
||||
bool ToggleWindowStyle(int flag);
|
||||
|
||||
// extra style: the less often used style bits which can't be set with
|
||||
// SetWindowStyleFlag()
|
||||
virtual void SetExtraStyle(long exStyle) { m_exStyle = exStyle; }
|
||||
|
Reference in New Issue
Block a user