short Escape(hDC, GETCOLORTABLE, sizeof(int),lpIndex,lpColor)
This escape retrieves an RGB color-table entry and copies it to the location specified by the lpColor parameter.
Parameter | Type/Description |
hDC | HDC Identifies the device context. | |
lpIndex | LPINT Points to a short-integer value that specifies the index of a color-table entry. Color-table indexes start at zero for the first table entry. | |
lpColor | DWORD FAR * Points to the long-integer value that will receive the RGB color value for the given entry. |
The return value specifies the outcome of the escape. It is positive if the escape is successful. Otherwise, it is negative.