Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
| Microsoft DirectShow 9.0 | 
IVideoWindow::GetRestorePosition
The GetRestorePosition method retrieves the restored window position.
Syntax
  HRESULT GetRestorePosition(
    long *pLeft,
    long *pTop,
    long *pWidth,
    long *pHeight
);
Parameters
pLeft
[out] Pointer to a variable that receives the x-coordinate, in pixels.
pTop
[out] Pointer to a variable that receives the y-coordinate, in pixels.
pWidth
[out] Pointer to a variable that receives the width of the window, in pixels.
pHeight
[out] Pointer to a variable that receives the height of the window, in pixels.
Return Values
Possible return values include the following:
| Value | Description | 
| E_POINTER | NULL pointer. | 
| S_OK | Success. | 
| VFW_E_NOT_CONNECTED | The video renderer filter is not connected. | 
Remarks
If the video window is minimized or maximized, you can use this method to get the window's restored position.
Requirements
Header: Declared in Control.h; include Dshow.h.
Library: Use Strmiids.lib.
See Also