GETCOLORTABLE

  #define GETCOLORTABLE 5    

  short Control(lpDevice, GETCOLORTABLE, lpIndex, lpColor)    
  LPPDEVICE lpDevice;    
  LPINT lpIndex;    
  LPLONG lpColor;    

The GETCOLORTABLE escape retrieves an RGB color-table entry and copies it to the location specified by the lpColor parameter.

Parameters

lpDevice

Points to a PDEVICE structure specifying the destination device.

lpIndex

Points to a 16-bit a variable specifying the index of a color-table entry. Color-table indexes start at zero for the first table entry.

lpColor

Points to 32-bit variable that receives the RGB color value for the given entry.

Return Value

The return value is positive if the escape is successful. Otherwise, it is negative.

See Also

SETCOLORTABLE