added wxSYS_COLOUR_LISTBOX

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2000-02-15 22:10:08 +00:00
parent 9c0f7642cc
commit 019a60d625
5 changed files with 79 additions and 65 deletions

View File

@@ -58,6 +58,8 @@
#define wxSYS_COLOUR_INFOTEXT 23
#define wxSYS_COLOUR_INFOBK 24
#define wxSYS_COLOUR_LISTBOX 25
#define wxSYS_COLOUR_DESKTOP wxSYS_COLOUR_BACKGROUND
#define wxSYS_COLOUR_3DFACE wxSYS_COLOUR_BTNFACE
#define wxSYS_COLOUR_3DSHADOW wxSYS_COLOUR_BTNSHADOW

View File

@@ -74,6 +74,7 @@ wxColour wxSystemSettings::GetSystemColour(int index)
break ;
case wxSYS_COLOUR_INFOBK :
case wxSYS_COLOUR_APPWORKSPACE:
case wxSYS_COLOUR_LISTBOX:
return *wxWHITE ;
break ;
}

View File

@@ -74,6 +74,7 @@ wxColour wxSystemSettings::GetSystemColour(int index)
break ;
case wxSYS_COLOUR_INFOBK :
case wxSYS_COLOUR_APPWORKSPACE:
case wxSYS_COLOUR_LISTBOX:
return *wxWHITE ;
break ;
}

View File

@@ -51,6 +51,7 @@ wxColour wxSystemSettings::GetSystemColour(int index)
}
case wxSYS_COLOUR_HIGHLIGHT:
case wxSYS_COLOUR_BTNHIGHLIGHT:
case wxSYS_COLOUR_LISTBOX:
// case wxSYS_COLOUR_3DHIGHLIGHT: // Same as wxSYS_COLOUR_BTNHIGHLIGHT
{
return *wxWHITE;

View File

@@ -41,9 +41,18 @@
wxColour wxSystemSettings::GetSystemColour(int index)
{
switch (index)
{
case wxSYS_COLOUR_LISTBOX:
return *wxWHITE;
break;
default:
COLORREF ref = ::GetSysColor(index);
wxColour col(GetRValue(ref), GetGValue(ref), GetBValue(ref));
return col;
break;
}
}
wxFont wxSystemSettings::GetSystemFont(int index)