DWORD GetWindowOrg(hDC)
This function retrieves the x- and y-coordinates of the origin of the window associated with the specified device context.
Parameter | Type/Description |
hDC | HDC Identifies the device context. |
The return value specifies the origin of the window (in logical coordinates). The y-coordinate is in the high-order word; the x-coordinate is in the low-order word.