BCGControlBar Library for .NET
WinXPGetThemeSysColor Method




Specifies if it is necessary to define a color of a button or a window.
Specifies the index of the color of the element to display.
Returns the system color defined by the specified index for specified color theme.
Syntax
'Declaration
 
Public Function WinXPGetThemeSysColor( _
   ByVal theme As WinXPTheme, _
   ByVal WindowsColorIndex As Integer _
) As Color
'Usage
 
Dim instance As WinXPThemeManager
Dim theme As WinXPTheme
Dim WindowsColorIndex As Integer
Dim value As Color
 
value = instance.WinXPGetThemeSysColor(theme, WindowsColorIndex)
public Color WinXPGetThemeSysColor( 
   WinXPTheme theme,
   int WindowsColorIndex
)
public: Color WinXPGetThemeSysColor( 
   WinXPTheme theme,
   int WindowsColorIndex
) 
public:
Color WinXPGetThemeSysColor( 
   WinXPTheme theme,
   int WindowsColorIndex
) 

Parameters

theme
Specifies if it is necessary to define a color of a button or a window.
WindowsColorIndex
Specifies the index of the color of the element to display.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

WinXPThemeManager Class
WinXPThemeManager Members

Send Feedback