BOOL ScreenToClient( HWND hWnd, // handle to window LPPOINT lpPoint // screen coordinates ); 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 Values If the function succeeds, the return value is nonzero.If the function fails, the return value is zero.
BOOL ScreenToClient(
HWND hWnd, // handle to window
LPPOINT lpPoint // screen coordinates
);
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 Values
If the function succeeds, the return value is nonzero.If the function fails, the return value is zero.