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. |
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
Return Values
Returns S_OK if successful or S_FALSE if the GdiFlushfunction could not flush the calling thread's current batch.
Remarks
The window class is given a palette handle to use with the CBaseWindow::SetPalettemember 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.