X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/584ad2a32fec156c6049145d7ece9a33213aea28..4c68a10264347cc04b1a6634000595f160792231:/include/wx/msw/listbox.h diff --git a/include/wx/msw/listbox.h b/include/wx/msw/listbox.h index 5ab31ebbed..f1c58c0979 100644 --- a/include/wx/msw/listbox.h +++ b/include/wx/msw/listbox.h @@ -129,9 +129,20 @@ public: // Windows callbacks bool MSWCommand(WXUINT param, WXWORD id); - virtual void SetupColours(); + virtual wxVisualAttributes GetDefaultAttributes() const + { + return GetClassDefaultAttributes(GetWindowVariant()); + } + + static wxVisualAttributes + GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL) + { + return GetCompositeControlsDefaultAttributes(variant); + } protected: + WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const; + // free memory (common part of Clear() and dtor) void Free();