Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Win 2 API - <b>getsyscolor</b> get current color of display element http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetSysColor          Get Current Color of Display Element

DWORD GetSysColor(nIndex)
int nIndex;

                nIndex
        |-----------------------|
        | COLOR_ACTIVEBORDER    |
        | COLOR_ACTIVECAPTION   |
        | COLOR_APPWORKSPACE    |
        | COLOR_BACKGROUND      |
        | COLOR_CAPTIONTEXT     |
        | COLOR_INACTIVEBORDER  |
        | COLOR_INACTIVECAPTION |
        | COLOR_MENU            |
        | COLOR_MENUTEXT        |
        | COLOR_SCROLLBAR       |
        | COLOR_WINDOW          |
        | COLOR_WINDOWFRAME     |
        | COLOR_WINDOWTEXT      |
        | CTLCOLOR_BTN          |
        | CTLCOLOR_DLG          |
        | CTLCOLOR_EDIT         |
        | CTLCOLOR_LISTBOX      |
        | CTLCOLOR_MAX          |
        | CTLCOLOR_MSGBOX       |
        | CTLCOLOR_SCROLLBAR    |
        | CTLCOLOR_STATIC       |
        +-----------------------+


Returns:    RGB color.

See Also: RGB SetSysColor

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson