UpdateColors

Version 3.0

Syntax

int UpdateColors(hDC)

This function updates the client area of the device context identified by the hDC parameter by matching the current colors in the client area to the system palette on a pixel-by-pixel basis. An inactive window with a realized logical palette may call UpdateColors as an alternative to redrawing its client area when the system palette changes.

Parameter Type/Description  

hDC HDC Identifies the device context.  

Return Value

The return value is not used.

Comments

UpdateColors typically updates a client area faster than redrawing the area. However, because UpdateColors performs the color translation based on the color of each pixel before the system palette changed, each call to this function results in the loss of some color accuracy.