X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a047aff270905b377a81657a90f92eb3297157d0..82c6387837096ddd8c0d8f3a2ef7b9d889ec8f75:/include/wx/vlbox.h?ds=sidebyside diff --git a/include/wx/vlbox.h b/include/wx/vlbox.h index 2301f7c651..e746c8f863 100644 --- a/include/wx/vlbox.h +++ b/include/wx/vlbox.h @@ -201,9 +201,9 @@ public: static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); - virtual wxBorder GetDefaultBorder() const { return GetDefaultBorderForControl(); } - protected: + virtual wxBorder GetDefaultBorder() const { return wxBORDER_THEME; } + // the derived class must implement this function to actually draw the item // with the given index on the provided DC virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const = 0;