How do the Win32 System Colors map to the colors provided by System.Drawing.SystemColors?

Platform: WinForms| Category: from GDI

The following table lists all Win32 System Colors and the corresponding name in System.Drawing.SystemColors type:

GetSysColor(n)SystemColors.
COLOR_ACTIVEBORDERActiveBorder
COLOR_ACTIVECAPTIONActiveCaption
COLOR_CAPTIONTEXTActiveCaptionText
COLOR_APPWORKSPACEAppWorkspace
COLOR_3DFACEControl
COLOR_3DSHADOWControlDark
COLOR_3DDKSHADOWControlDarkDark
COLOR_3DLIGHTControlLight
COLOR_3DHIGHLIGHTControlLightLight
COLOR_BTNTEXTControlText
COLOR_DESKTOPDesktop
COLOR_GRAYTEXTGrayText
COLOR_HIGHLIGHTHighlight
COLOR_HIGHLIGHTTEXTHighlightText
COLOR_HIGHLIGHTHotTrack
COLOR_INACTIVEBORDERInactiveBorder
COLOR_INACTIVECAPTIONInactiveCaption
COLOR_INACTIVECAPTIONTEXTInactiveCaptionText
COLOR_INFOBKInfo
COLOR_INFOTEXTInfoText
COLOR_MENUMenu
COLOR_MENUTEXTMenuText
COLOR_SCROLLBARScrollBar
COLOR_WINDOWWindow
COLOR_WINDOWFRAMEWindowFrame
COLOR_WINDOWTEXTWindowText
COLOR_3DHILIGHTControlLightLight
COLOR_BTNHIGHLIGHTControlLightLight
COLOR_BTNHILIGHTControlLightLight
COLOR_BACKGROUNDDesktop

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.