Microsoft Windows CE 3.0  

CBaseWindow::OnPaletteChange

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Handles WM_PALETTEISCHANGING and WM_PALETTECHANGED messages.

virtual LRESULT OnPaletteChange(
HWND
hwnd
,
UINT
Message
);

Parameters

hwnd
Handle of the window causing the message.
Message
Message details passed on from the window procedure.

Return Values

Returns one of the following values.

0 Message was not handled.
1 Message was processed.

Remarks

When the base class receives a WM_PALETTEISCHANGING message, it realizes its palette again. It must also do this when told, through WM_PALETTECHANGED, that the system palette has changed. In the latter case, however, the base class must be careful not to realize its palette if it was the window that caused the WM_PALETTECHANGED message (which is why the window that caused the message to be sent is passed into the member function).

This is a protected member function.