Partager via


WM_PALETTECHANGED

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This message is sent by the OS to all top-level and overlapped windows after the window with the keyboard focus realizes its logical palette.

This message enables windows that do not have the keyboard focus to realize their logical palettes and update their client areas.

Syntax

WM_PALETTECHANGED hwndPalChg = (HWND) wParam; 

Parameters

  • hwndPalChg
    Handle to the window that caused the system palette to change.

Return Value

None.

Remarks

This message must be sent to all top-level and overlapped windows, including the one that changed the system palette.

If child windows use a color palette, this message must be passed on to them as well.

To avoid creating an infinite loop, a window that receives this message must not realize its palette unless it determines that wParam does not contain its own window handle.

Requirements

Header windows.h
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

WM_QUERYNEWPALETTE
GDI Messages