diff --git a/include/wx/renderer.h b/include/wx/renderer.h index 97152e32e3..a6076b5b96 100644 --- a/include/wx/renderer.h +++ b/include/wx/renderer.h @@ -52,6 +52,7 @@ class WXDLLIMPEXP_FWD_CORE wxWindow; // control state flags used in wxRenderer and wxColourScheme enum { + wxCONTROL_NONE = 0x00000000, // absence of any other flags wxCONTROL_DISABLED = 0x00000001, // control is disabled wxCONTROL_FOCUSED = 0x00000002, // currently has keyboard focus wxCONTROL_PRESSED = 0x00000004, // (button) is pressed diff --git a/interface/wx/renderer.h b/interface/wx/renderer.h index ef1d487967..7ff81f43b6 100644 --- a/interface/wx/renderer.h +++ b/interface/wx/renderer.h @@ -12,6 +12,13 @@ */ enum { + /** + Default state, no special flags. + + @since 3.1.0 + */ + wxCONTROL_NONE = 0x00000000, + /** Control is disabled. */ wxCONTROL_DISABLED = 0x00000001, diff --git a/src/msw/radiobut.cpp b/src/msw/radiobut.cpp index 3737df1cc9..74c9062bc6 100644 --- a/src/msw/radiobut.cpp +++ b/src/msw/radiobut.cpp @@ -322,7 +322,7 @@ void wxRadioButton::MSWOnButtonResetOwnerDrawn() int wxRadioButton::MSWGetButtonCheckedFlag() const { - return m_isChecked ? wxCONTROL_CHECKED : 0; + return m_isChecked ? wxCONTROL_CHECKED : wxCONTROL_NONE; } void wxRadioButton::MSWDrawButtonBitmap(wxDC& dc, const wxRect& rect, int flags)