Simulation support:
None. This function is mandatory for all drivers.
Description:
GreCreateLogColorTable defines the entries of the Logical Color Table.
This function must be supported by the presentation driver. GreCreateLogColorTable is called by GpiCreateLogColorTable to create a Logical Color Table, which is used in subsequent drawing operations.
#define INCL_GRE_COLORTABLE #include <os2.h> HDC hdc; /* Device context handle. */ ULONG flOptions; /* Options flag. */ LONG lFormat; /* Format of entries in the table. */ LONG lStart; /* Starting index. */ LONG cCount; /* Number of elements supplied in the application data area. */ PLONG pData; /* Pointer to the application data area. */ PVOID pInstance; /* Pointer to instance data. */ ULONG lFunction; BOOL rc; /* Return Codes. */ rc = GreCreateLogColorTable(hdc, flOptions, lFormat, lStart, cCount, pData, pInstance, lFunction);