X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..bc07ab17bf5370f452e899128bf89cc7ca7b98f0:/include/wx/vlbox.h diff --git a/include/wx/vlbox.h b/include/wx/vlbox.h index f3ce27a421..ac1d0286da 100644 --- a/include/wx/vlbox.h +++ b/include/wx/vlbox.h @@ -13,6 +13,7 @@ #define _WX_VLBOX_H_ #include "wx/vscroll.h" // base class +#include "wx/bitmap.h" class WXDLLEXPORT wxSelectionStore; @@ -189,10 +190,14 @@ public: void SetSelectionBackground(const wxColour& col); - virtual void ApplyParentThemeBackground(const wxColour& WXUNUSED(bg)) - { /* do nothing */ } + virtual wxVisualAttributes GetDefaultAttributes() const + { + return GetClassDefaultAttributes(GetWindowVariant()); + } + + static wxVisualAttributes + GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); - protected: // the derived class must implement this function to actually draw the item // with the given index on the provided DC @@ -282,7 +287,6 @@ private: // the selection bg colour wxColour m_colBgSel; - DECLARE_EVENT_TABLE() DECLARE_NO_COPY_CLASS(wxVListBox) DECLARE_ABSTRACT_CLASS(wxVListBox)