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>getstockobject</b> get handle to predefined object http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetStockObject       Get Handle To Predefined Object

HANDLE GetStockObject(nIndex)
short nIndex;

                nIndex
        |--------------------|
        | WHITE_BRUSH        |
        | LTGRAY_BRUSH       |
        | GRAY_BRUSH         |
        | DKGRAY_BRUSH       |
        | BLACK_BRUSH        |
        | NULL_BRUSH         |
        | HOLLOW_BRUSH       |
        | WHITE_PEN          |
        | BLACK_PEN          |
        | NULL_PEN           |
        | OEM_FIXED_FONT     |
        | ANSI_FIXED_FONT    |
        | ANSI_VAR_FONT      |
        | SYSTEM_FONT        |
        | DEVICEDEFAULT_FONT |
        +--------------------+

Returns:    HANDLE to logical object otherwise NULL.

See Also: DeleteObject EnumObjects GetObject SelectObject SetBrushOrg

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