Microsoft Windows CE 3.0  

IVideoWindow::GetWindowPosition

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Retrieves the current window rectangle (not the client rectangle) in device coordinates.

HRESULT
GetWindowPosition(
long *
pLeft
,
long *
pTop
,
long *
pWidth
, long *
pHeight
);

Parameters

pLeft
[out] The x-axis origin of the window.
pTop
[out] The y-axis origin of the window.
pWidth
[out] Width of the window in pixels.
pHeight
[out] Height of the window in pixels.

Return Values

Returns an HRESULTvalue.

Remarks

This method has the same effect as individually calling the IVideoWindow::get_Left, IVideoWindow::get_Top, IVideoWindow::get_Width, and IVideoWindow::get_Heightmethods.