Compartir a través de


IVMRWindowlessControl::RepaintVideo

 
Microsoft DirectShow 9.0

IVMRWindowlessControl::RepaintVideo

The RepaintVideo method repaints the current video frame.

Syntax

  HRESULT RepaintVideo(

  
  HWND
  
  hwnd
  ,

  
  HDC
  
  hdc

  );

Parameters

hwnd

[in]  Specifies the handle of the window in which the repainting should occur.

hdc

[in]  Specifies the handle to the device context for the window.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Error Code Description
VFW_E_WRONG_STATE The VMR is not in windowless mode.

Requirements

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

Library: Use Strmiids.lib.

See Also