CBaseWindow::DoRealisePalette

Maps palette entries from this window's palette to the system palette. The window's palette is set with CBaseWindow::SetPalette.

virtual HRESULT DoRealisePalette(
BOOL bForceBackground);

Parameters

  • bForceBackground
    Value that specifies whether the palette is forced to the background.

Return Values

Returns S_OK if successful or S_FALSE if the GdiFlush function could not flush the calling thread's current batch.

Remarks

The window class is given a palette handle to use with the CBaseWindow::SetPalette member function. After a palette has been installed, it can be realized by calling this member function. The class will also call this member function when it gets WM_QUERYNEWPALETTE and WM_PALETTECHANGED messages from the Microsoft Windows operating system.

Call this function with TRUE in response to WM_SETPALETTE and FALSE in response to WM_QUERYNEWPALETTE.

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.