Move wxControl::GetCompositeControlsDefaultAttributes() from MSW to common.
This function is not MSW-specific and should be used in generic implementation of controls such as wxListCtrl, wxTreeCtrl and wxDataViewCtrl. Even if it is needed by MSW only now, move it to the common code to avoid #ifdefs in these controls code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -303,18 +303,6 @@ wxControl::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
|
||||
return attrs;
|
||||
}
|
||||
|
||||
// another version for the "composite", i.e. non simple controls
|
||||
/* static */ wxVisualAttributes
|
||||
wxControl::GetCompositeControlsDefaultAttributes(wxWindowVariant WXUNUSED(variant))
|
||||
{
|
||||
wxVisualAttributes attrs;
|
||||
attrs.font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
|
||||
attrs.colFg = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT);
|
||||
attrs.colBg = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW);
|
||||
|
||||
return attrs;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// message handling
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user