int UpdateColors(hdc) | |||||
HDC hdc; | /* handle of device context | */ |
The UpdateColors function updates the client area of the given device context by matching the current colors in the client area, pixel by pixel, to the system palette. An inactive window with a realized logical palette may call UpdateColors as an alternative to redrawing its client area when the system palette changes.
hdc
Identifies the device context.
The return value is not used.
Using UpdateColors to update a client area is typically 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.