Add convenient wxST_ELLIPSIZE_MASK constant.
This is simply a combination of all 3 different wxST_ELLIPSIZE_XXX styles and makes it simpler to test if any of them is specified. No real changes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -26,6 +26,9 @@
|
||||
#define wxST_ELLIPSIZE_MIDDLE 0x0008
|
||||
#define wxST_ELLIPSIZE_END 0x0010
|
||||
|
||||
#define wxST_ELLIPSIZE_MASK \
|
||||
(wxST_ELLIPSIZE_START | wxST_ELLIPSIZE_MIDDLE | wxST_ELLIPSIZE_END)
|
||||
|
||||
extern WXDLLIMPEXP_DATA_CORE(const char) wxStaticTextNameStr[];
|
||||
|
||||
class WXDLLIMPEXP_CORE wxStaticTextBase : public wxControl
|
||||
@@ -44,9 +47,7 @@ public:
|
||||
|
||||
bool IsEllipsized() const
|
||||
{
|
||||
return HasFlag(wxST_ELLIPSIZE_START) ||
|
||||
HasFlag(wxST_ELLIPSIZE_MIDDLE) ||
|
||||
HasFlag(wxST_ELLIPSIZE_END);
|
||||
return (GetWindowStyle() & wxST_ELLIPSIZE_MASK) != 0;
|
||||
}
|
||||
|
||||
protected: // functions required for wxST_ELLIPSIZE_* support
|
||||
|
Reference in New Issue
Block a user