CBaseWindow::OnPaletteChange

 
Microsoft DirectShow 9.0

CBaseWindow::OnPaletteChange

The OnPaletteChange method handles palette-change messages.

Syntax

  virtual LRESULT OnPaletteChange(
    HWND hwnd,
    UINT Message
);

Parameters

hwnd

Handle to the window.

Message

Message identifier.

Return Value

Returns 0 if the message was processed, or 1 if the message was not processed.

Remarks

This method handles WM_PALETTECHANGED and WM_QUERYNEWPALETTE messages. It calls the CBaseWindow::DoRealisePalette method to realize the new palette.

Requirements

**  Header:** Declared in Winutil.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also