From: Vadim Zeitlin Date: Sat, 26 Sep 2009 16:43:12 +0000 (+0000) Subject: Use default composite controls attributes for wxDataViewCtrl. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2fa90e33eaa1b9d9bf851fc0cdaf90b63e964ee6 Use default composite controls attributes for wxDataViewCtrl. wxDataViewCtrl should use the same colours/fonts as the native list and tree controls. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/dataview.h b/include/wx/dataview.h index 25cce4838f..d4da5c66ed 100644 --- a/include/wx/dataview.h +++ b/include/wx/dataview.h @@ -727,6 +727,20 @@ public: { return false; } #endif // wxUSE_DRAG_AND_DROP + // define control visual attributes + // -------------------------------- + + virtual wxVisualAttributes GetDefaultAttributes() const + { + return GetClassDefaultAttributes(GetWindowVariant()); + } + + static wxVisualAttributes + GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL) + { + return wxControl::GetCompositeControlsDefaultAttributes(variant); + } + protected: virtual void DoSetExpanderColumn() = 0 ; virtual void DoSetIndent() = 0;