X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ea283460f73aed38d4f1791711b444e1bd40c372..e5805c0fde8bfabee79b155fbea761398efa4fc0:/include/wx/msw/spinctrl.h?ds=sidebyside diff --git a/include/wx/msw/spinctrl.h b/include/wx/msw/spinctrl.h index 02d229c748..551eb064eb 100644 --- a/include/wx/msw/spinctrl.h +++ b/include/wx/msw/spinctrl.h @@ -79,6 +79,18 @@ public: // wxSpinButton doesn't accept focus, but we do virtual bool AcceptsFocus() const { return wxWindow::AcceptsFocus(); } + // we're like wxTextCtrl and not (default) wxButton + virtual wxVisualAttributes GetDefaultAttributes() const + { + return GetClassDefaultAttributes(GetWindowVariant()); + } + + static wxVisualAttributes + GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL) + { + return GetCompositeControlsDefaultAttributes(variant); + } + // for internal use only // get the subclassed window proc of the buddy text