Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetSysColors
Message
From
17/01/2000 14:55:04
 
 
To
17/01/2000 11:09:21
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00319004
Message ID:
00319148
Views:
14
>Can anyone point me to a header file or any other reference that tells which number to pass to this function for any particular color. I'm especially interested in the user defined color for the "Active Title". I've been told I can't retrieve the value from the registry and must use this API call.
>
>TIA

*!* #define COLOR_SCROLLBAR 0
*!* #define COLOR_BACKGROUND 1
*!* #define COLOR_ACTIVECAPTION 2
*!* #define COLOR_INACTIVECAPTION 3
*!* #define COLOR_MENU 4
*!* #define COLOR_WINDOW 5
*!* #define COLOR_WINDOWFRAME 6
*!* #define COLOR_MENUTEXT 7
*!* #define COLOR_WINDOWTEXT 8
*!* #define COLOR_CAPTIONTEXT 9
*!* #define COLOR_ACTIVEBORDER 10
*!* #define COLOR_INACTIVEBORDER 11
*!* #define COLOR_APPWORKSPACE 12
*!* #define COLOR_HIGHLIGHT 13
*!* #define COLOR_HIGHLIGHTTEXT 14
*!* #define COLOR_BTNFACE 15
*!* #define COLOR_BTNSHADOW 16
*!* #define COLOR_GRAYTEXT 17
*!* #define COLOR_BTNTEXT 18
*!* #define COLOR_INACTIVECAPTIONTEXT 19
*!* #define COLOR_BTNHIGHLIGHT 20

*!* #if(WINVER >= 0x0400)
*!* #define COLOR_3DDKSHADOW 21
*!* #define COLOR_3DLIGHT 22
*!* #define COLOR_INFOTEXT 23 Tooltip text
*!* #define COLOR_INFOBK 24 Tooltip background

*!* #define COLOR_DESKTOP COLOR_BACKGROUND
*!* #define COLOR_3DFACE COLOR_BTNFACE
*!* #define COLOR_3DSHADOW COLOR_BTNSHADOW
*!* #define COLOR_3DHIGHLIGHT COLOR_BTNHIGHLIGHT
*!* #define COLOR_3DHILIGHT COLOR_BTNHIGHLIGHT
*!* #define COLOR_BTNHILIGHT COLOR_BTNHIGHLIGHT
*!* #endif /* WINVER >= 0x0400 */

bb
Previous
Reply
Map
View

Click here to load this message in the networking platform