CBaseWindow::OnReceiveMessage

 
Microsoft DirectShow 9.0

CBaseWindow::OnReceiveMessage

The OnReceiveMessage method handles window messages.

Syntax

  virtual LRESULT OnReceiveMessage(
    HWND hwnd,
    INT uMsg,
    WPARAM wParam,
    LPARAM lParam
);

Parameters

hwnd

Handle to the window.

uMsg

Message identifier.

wParam

First message parameter.

lParam

Second message parameter.

Return Value

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

Remarks

The base class handles the following messages:

  • WM_CLOSE
  • WM_MOVE
  • WM_PALETTECHANGED
  • WM_QUERYNEWPALETTE
  • WM_SIZE
  • WM_SYSCOLORCHANGE

A derived class can override this method to handle other messages. The derived class should call the base class method to handle any messages that the derived class ignores.

Requirements

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

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

See Also