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:
@@ -58,6 +58,8 @@
|
|||||||
#define wxSYS_COLOUR_INFOTEXT 23
|
#define wxSYS_COLOUR_INFOTEXT 23
|
||||||
#define wxSYS_COLOUR_INFOBK 24
|
#define wxSYS_COLOUR_INFOBK 24
|
||||||
|
|
||||||
|
#define wxSYS_COLOUR_LISTBOX 25
|
||||||
|
|
||||||
#define wxSYS_COLOUR_DESKTOP wxSYS_COLOUR_BACKGROUND
|
#define wxSYS_COLOUR_DESKTOP wxSYS_COLOUR_BACKGROUND
|
||||||
#define wxSYS_COLOUR_3DFACE wxSYS_COLOUR_BTNFACE
|
#define wxSYS_COLOUR_3DFACE wxSYS_COLOUR_BTNFACE
|
||||||
#define wxSYS_COLOUR_3DSHADOW wxSYS_COLOUR_BTNSHADOW
|
#define wxSYS_COLOUR_3DSHADOW wxSYS_COLOUR_BTNSHADOW
|
||||||
|
@@ -74,6 +74,7 @@ wxColour wxSystemSettings::GetSystemColour(int index)
|
|||||||
break ;
|
break ;
|
||||||
case wxSYS_COLOUR_INFOBK :
|
case wxSYS_COLOUR_INFOBK :
|
||||||
case wxSYS_COLOUR_APPWORKSPACE:
|
case wxSYS_COLOUR_APPWORKSPACE:
|
||||||
|
case wxSYS_COLOUR_LISTBOX:
|
||||||
return *wxWHITE ;
|
return *wxWHITE ;
|
||||||
break ;
|
break ;
|
||||||
}
|
}
|
||||||
|
@@ -74,6 +74,7 @@ wxColour wxSystemSettings::GetSystemColour(int index)
|
|||||||
break ;
|
break ;
|
||||||
case wxSYS_COLOUR_INFOBK :
|
case wxSYS_COLOUR_INFOBK :
|
||||||
case wxSYS_COLOUR_APPWORKSPACE:
|
case wxSYS_COLOUR_APPWORKSPACE:
|
||||||
|
case wxSYS_COLOUR_LISTBOX:
|
||||||
return *wxWHITE ;
|
return *wxWHITE ;
|
||||||
break ;
|
break ;
|
||||||
}
|
}
|
||||||
|
@@ -51,6 +51,7 @@ wxColour wxSystemSettings::GetSystemColour(int index)
|
|||||||
}
|
}
|
||||||
case wxSYS_COLOUR_HIGHLIGHT:
|
case wxSYS_COLOUR_HIGHLIGHT:
|
||||||
case wxSYS_COLOUR_BTNHIGHLIGHT:
|
case wxSYS_COLOUR_BTNHIGHLIGHT:
|
||||||
|
case wxSYS_COLOUR_LISTBOX:
|
||||||
// case wxSYS_COLOUR_3DHIGHLIGHT: // Same as wxSYS_COLOUR_BTNHIGHLIGHT
|
// case wxSYS_COLOUR_3DHIGHLIGHT: // Same as wxSYS_COLOUR_BTNHIGHLIGHT
|
||||||
{
|
{
|
||||||
return *wxWHITE;
|
return *wxWHITE;
|
||||||
|
@@ -41,9 +41,18 @@
|
|||||||
|
|
||||||
wxColour wxSystemSettings::GetSystemColour(int index)
|
wxColour wxSystemSettings::GetSystemColour(int index)
|
||||||
{
|
{
|
||||||
|
switch (index)
|
||||||
|
{
|
||||||
|
case wxSYS_COLOUR_LISTBOX:
|
||||||
|
return *wxWHITE;
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
COLORREF ref = ::GetSysColor(index);
|
COLORREF ref = ::GetSysColor(index);
|
||||||
wxColour col(GetRValue(ref), GetGValue(ref), GetBValue(ref));
|
wxColour col(GetRValue(ref), GetGValue(ref), GetBValue(ref));
|
||||||
return col;
|
return col;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wxFont wxSystemSettings::GetSystemFont(int index)
|
wxFont wxSystemSettings::GetSystemFont(int index)
|
||||||
|
Reference in New Issue
Block a user