Microsoft Windows CE 3.0  

IVideoWindow::GetRestorePosition

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.

Returns the normal restored window dimensions.

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

Parameters

pLeft
[out] Left x-axis coordinate of the window.
pTop
[out] Top y-axis coordinate 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

When the window is maximized or minimized, the window position methods return the actual window size. This method returns the dimensions that the window would be when restored. It is useful for applications that want to save a window state while the window is maximized or minimized.