| BOOL GetTextColor( |
| |
COLORREF *lprgbColor, |
|
| |
BOOL bForeground |
|
| ); |
The GetTextColor method returns the current foreground or
background text color.
Parameters
- lprgbColor
- A pointer to a COLORREF variable which will contain the current
foreground or background text color.
- bForeground
- A boolean value which determines if the foreground or
background color is returned. A value of TRUE indicates that the
foreground color should be returned, otherwise the background color
is returned.
Return Value
If the method succeeds, the return value is non-zero. If the
method fails, the return value is zero. Failure indicates that the
handle to the display is invalid, the display does not support text
color attributes, or the pointer to the color value is NULL.
Remarks
This method is used to return the current foreground or background
color, as determined by the text attribute. The RGB color value for a
color attribute is determined by the virtual display's color
table.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csnvtv12.lib
See Also
|