Microsoft DirectX 9.0 |
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.
See Also