Simulation support:
None. This function is mandatory for all drivers.
Description: GreRealizeColorTable causes the system to ensure that, for a realizable color table, the device physical color table is set to the closest possible match to the logical color table.
This function must be supported by the presentation driver. GreRealizeColorTable is called by GpiRealizeColorTable in response to the request of an application to realize the current logical color table to device output capabilities. This function can be handled by bit-map simulation.
#define INCL_GRE_COLORTABLE #include <os2.h> HDC hdc; /* Device context handle. */ PVOID pInstance; /* Pointer to instance data. */ ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreRealizeColorTable. */ BOOL rc; /* Return Code. */ rc = GreRealizeColorTable(hdc, pInstance, lFunction);