Microsoft DirectX 8.1 (C++) |
The GetWindowPosition method retrieves the position of the video window.
Syntax
HRESULT GetWindowPosition(
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 pins are not connected. |
Remarks
This method has the same effect as calling the IVideoWindow::get_Left, IVideoWindow::get_Top, IVideoWindow::get_Width, and IVideoWindow::get_Height methods.
See Also