Compartilhar via


CBaseWindow::OnReceiveMessage (Compact 2013)

3/26/2014

Indicates a base class implementation of a window procedure.

Syntax

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

Parameters

  • hwnd
    Handle to the window.
  • uMsg
    Message identifier.
  • wParam
    Message's wParam parameter.
  • lParam
    Message's lParam parameter.

Return Value

Returns an LRESULT value, based on the uMsg parameter.

If uMsg is not one of the specified values, OnReceiveMessage passes the message to the Win32 DefWindowProc function and forwards the resulting return value to the caller.

Message

Action

m_RealizePalette

Returns 0.

m_ShowStageMessage

Returns 1.

m_ShowStageTop

Returns 1.

WM_CLOSE

Returns 0.

WM_PALETTECHANGED

Returns 0.

WM_QUERYNEWPALETTE

Returns result of CBaseWindow::OnPaletteChange.

WM_SIZE

Returns 0.

WM_SYSCOLORCHANGE

Returns 1.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CBaseWindow Class