This documentation is archived and is not being maintained.


Updates the client area of the device context by matching the current colors in the client area to the system palette on a pixel-by-pixel basis.

void UpdateColors( );

An inactive window with a realized logical palette may call UpdateColors as an alternative to redrawing its client area when the system palette changes.

For more information about using color palettes, see UpdateColors in the Platform SDK.

The UpdateColors member function typically updates a client area faster than redrawing the area. However, because the function 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.