Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.1 KB

File metadata and controls

52 lines (35 loc) · 1.1 KB

Home

Function name : ScreenToClient

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.


Code examples:

Form Magnifier

Declaration:

BOOL ScreenToClient(
	HWND hWnd,        // handle to window
	LPPOINT lpPoint   // screen coordinates
);  

FoxPro declaration:

DECLARE INTEGER ScreenToClient IN user32;
	INTEGER   hWnd,;
	STRING  @ lpPoint  

Parameters:

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.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

See also: ClientToScreen.