 |
GetSysColor Add comment W32 Constants Translate this page |
 |
 |
|
Retrieves the current color of the specified display element. Display elements are the parts of a window and the Windows display that appear on the system display screen |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
DWORD GetSysColor(
int nIndex // display element
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetSysColor IN user32 INTEGER nIndex
|
 |
 |
 |
| Parameters: |
 |
nIndex
Specifies the display element whose color is to be retrieved |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is the red, green, blue (RGB) color value that specifies the color of the given element |
 |
 |
| My comment: |
 |
| Some constants are not availble for Win9 or otherwise for WinNT. The "reverse" function is SetSysColors. Note the difference: GetSysColor restores one color at a time; SetSysColors function allows to change several colors at once |
 |
 |
| Word Index links for the GetSysColor : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-07-14 12:00:00 | | Modified: | 2001-11-26 16:02:24 | Visited in last 7 days: 31 |