BCGControlBar Library for .NET
WinXPGetThemeColor Method




Specifies if it is necessary to define a color of a button or a window.
Specifies the part of the visual style element to get a color.
Specifies the state of the visual style element to get a color.
The value of the specified color property for the current visual style element.
Specifies the color of the current visual style element.
Determines a color for the specified  part of visual style element with specified state.
Syntax
'Declaration
 
Public Sub WinXPGetThemeColor( _
   ByVal theme As WinXPTheme, _
   ByVal iPartId As Integer, _
   ByVal iStateId As Integer, _
   ByVal iPropId As Integer, _
   ByRef color As Color _
) 
'Usage
 
Dim instance As WinXPThemeManager
Dim theme As WinXPTheme
Dim iPartId As Integer
Dim iStateId As Integer
Dim iPropId As Integer
Dim color As Color
 
instance.WinXPGetThemeColor(theme, iPartId, iStateId, iPropId, color)
public void WinXPGetThemeColor( 
   WinXPTheme theme,
   int iPartId,
   int iStateId,
   int iPropId,
   ref Color color
)
public: void WinXPGetThemeColor( 
   WinXPTheme theme,
   int iPartId,
   int iStateId,
   int iPropId,
   ref Color color
) 
public:
void WinXPGetThemeColor( 
   WinXPTheme theme,
   int iPartId,
   int iStateId,
   int iPropId,
   Color% color
) 

Parameters

theme
Specifies if it is necessary to define a color of a button or a window.
iPartId
Specifies the part of the visual style element to get a color.
iStateId
Specifies the state of the visual style element to get a color.
iPropId
The value of the specified color property for the current visual style element.
color
Specifies the color of the current visual style element.
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