X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bd507486e07b742bb7acb118811efd60ee027859..c18353e5613042ac89a72d9762f481fb0ed6e5d2:/include/wx/vlbox.h diff --git a/include/wx/vlbox.h b/include/wx/vlbox.h index 42c5ce2ad4..bc61c0d542 100644 --- a/include/wx/vlbox.h +++ b/include/wx/vlbox.h @@ -5,7 +5,7 @@ // Modified by: // Created: 31.05.03 // RCS-ID: $Id$ -// Copyright: (c) 2003 Vadim Zeitlin +// Copyright: (c) 2003 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -13,6 +13,7 @@ #define _WX_VLBOX_H_ #include "wx/vscroll.h" // base class +#include "wx/bitmap.h" class WXDLLEXPORT wxSelectionStore; @@ -189,8 +190,14 @@ public: void SetSelectionBackground(const wxColour& col); - virtual bool CanApplyParentThemeBackground() const { return false; } - + 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 @@ -280,6 +287,8 @@ private: // the selection bg colour wxColour m_colBgSel; + // double buffer + wxBitmap* m_doubleBuffer; DECLARE_EVENT_TABLE() DECLARE_NO_COPY_CLASS(wxVListBox)