CDC::UpdateColors

voidUpdateColors();

Remarks

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. 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 in the Win32 SDK Programmer’s Reference.

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.

CDC OverviewClass MembersHierarchy Chart

See Also   CDC::RealizePalette, CPalette,