Microsoft Windows CE 3.0  

CBaseWindow::SetPalette

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.

Sets a palette for the window to use.

virtual HRESULT SetPalette(
HPALETTE
hPalette
);

Parameters

hPalette
Handle to the new palette.

Return Values

Returns an HRESULTvalue.

Remarks

This member function allows a filter to install a palette in the window object. The palette handle passed in should be non-NULL. The palette is realized when it is installed. The window object does not delete any previous palette that it was using; the client using the window object should ensure it deletes the palette it creates at the appropriate time.