Simulation support:

None. This function is mandatory for all drivers.

Description:

GreUnrealizeColorTable reverses GreRealizeColorTable by causing the default physical color table for the device to be reinstated.

This function must be supported by the presentation driver. GreUnrealizeColorTable is called by GpiUnRealizeColorTable in response to the request of an application to restore the application's logical color table prior to the last call to GpiRealizeColorTable. 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=NGreUnrealizeColorTable. */
BOOL     rc;         /*  Return codes. */

rc = GreUnrealizeColorTable(hdc, pInstance,
       lFunction);


[Back: GreUnrealizeColorTable]
[Next: GreUnrealizeColorTable Parameter - hdc]