共用方式為


IVideoWindow::NotifyOwnerMessage

 
Microsoft DirectShow 9.0

IVideoWindow::NotifyOwnerMessage

The NotifyOwnerMessage method forwards a message to the video window.

Syntax

  HRESULT NotifyOwnerMessage(
    OAHWND hwnd,
    long uMsg,
    LONG_PTR wParam,
    LONG_PTR lParam
);

Parameters

hwnd

[in] Handle to the window, as an OAHWND value.

uMsg

[in] Specifies the message.

wParam

[in] Message parameter.

lParam

[in] Message parameter.

Return Values

Possible return values include the following:

Value Description
S_OK Success.
VFW_E_NOT_CONNECTED The video renderer filter is not connected.

Remarks

The Filter Graph Manager calls this method to pass various messages to the renderer, including the following:

  • WM_ACTIVATEAPP
  • WM_DEVMODECHANGE
  • WM_DISPLAYCHANGE
  • WM_PALETTECHANGED
  • WM_PALETTEISCHANGING
  • WM_QUERYNEWPALETTE
  • WM_SYSCOLORCHANGE

Requirements

Header: Declared in Control.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also