Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than user32, prefix the name with the module name and a period.
GetSysColor (user32)
.
Summary
C# Signature:
[DllImport("user32.dll")]
static extern uint GetSysColor(int nIndex);
User-Defined Types:
None.
Notes:
None.
Tips & Tricks:
Here's which color corresponds to what in winuser.h
SystemColors.ScrollBar
CTLCOLOR_MSGBOX, COLOR_SCROLLBAR
SystemColors .Desktop
CTLCOLOR_EDIT, COLOR_BACKGROUND, COLOR_DESKTOP
SystemColors.ActiveCaption
CTLCOLOR_LISTBOX, COLOR_ACTIVECAPTION
SystemColors.InactiveCaption
CTLCOLOR_BTN, COLOR_INACTIVECAPTION
SystemColors .Menu
CTLCOLOR_DLG, COLOR_MENU
SystemColors .Window
CTLCOLOR_SCROLLBAR, COLOR_WINDOW
SystemColors.WindowFrame
CTLCOLOR_STATIC, COLOR_WINDOWFRAME
SystemColors.MenuText
CTLCOLOR_MAX, COLOR_MENUTEXT
SystemColors.WindowText
COLOR_WINDOWTEXT
SystemColors.ActiveCaptionText
COLOR_CAPTIONTEXT
SystemColors.ActiveBorder
COLOR_ACTIVEBORDER
SystemColors.InactiveBorder
COLOR_ACTIVEBORDER
SystemColors.AppWorkspace
COLOR_APPWORKSPACE
SystemColors .Highlight
COLOR_HIGHLIGHT
SystemColors.HighlightText
COLOR_HIGHLIGHTTEXT
SystemColors.ButtonFace
COLOR_BTNFACE, COLOR_3DFACE
SystemColors.ControlDark
COLOR_BTNSHADOW
SystemColors.GrayText
COLOR_GRAYTEXT
SystemColors.ControlText
COLOR_BTNTEXT
SystemColors.InactiveCaptionText
COLOR_INACTIVECAPTIONTEXT
SystemColors.ControlLightLight
COLOR_BTNHIGHLIGHT, COLOR_3DHIGHLIGHT, COLOR_3DHILIGHT, COLOR_BTNHILIGHT
SystemColors.ControlDarkDark
COLOR_3DSHADOW, COLOR_3DDKSHADOW
SystemColors.ControlLight
COLOR_3DLIGHT
SystemColors.InfoText
COLOR_INFOTEXT
SystemColors .Info
COLOR_INFOBK
SystemColors.HotTrack
COLOR_HOTLIGHT
SystemColors.GradientActiveCaption
COLOR_GRADIENTACTIVECAPTION
SystemColors.GradientInactiveCaption
COLOR_GRADIENTINACTIVECAPTION
SystemColors.MenuHighlight
COLOR_MENUHILIGHT
SystemColors.MenuBar
COLOR_MENUBAR
Sample Code:
Please add some!
Alternative Managed API:
Do you know one? Please contribute it!
Documentation
The GetSysColor API
1/26/2011 5:32:41 AM - -155.104.37.17
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).