get_window_origin


bool get_window_origin(handle device,
                       ipoint* origin)

This function obtains the origin of the window for the device context.

Parameters

handle device

The handle of the device context.

ipoint* origin

A pointer to a point that is updated to hold the origin of the window.

Return

bool

true The function succeeded.
false The call failed.

Notes

The window origin is measured in page units.