Group: Coordinate Space and Transformation - Library: user32
The ScreenToClient function converts the screen coordinates of a specified point on the screen to client-area coordinates.
BOOL ScreenToClient(
HWND hWnd, // handle to window
LPPOINT lpPoint // screen coordinates
); DECLARE INTEGER ScreenToClient IN user32;
INTEGER hWnd,;
STRING @ lpPoint hWnd [in] Handle to the window whose client area will be used for the conversion.
lpPoint [in] Pointer to a POINT structure that specifies the screen coordinates to be converted.
If the function succeeds, the return value is nonzero.
See also: ClientToScreen.
Home