Skip to content
This repository was archived by the owner on Nov 26, 2022. It is now read-only.

Win32.ScreenToClient

Andrew Lambert edited this page Jul 23, 2014 · 4 revisions

#Win32.ScreenToClient

##Method Signature

    Protected Function ScreenToClient(ScreenPoint As Realbasic.Point, HWND As Integer) As REALbasic.Point

##Parameters

Name Type Comment
ScreenPoint Realbasic.Point The x and y screen coordinates to be converted
HWND Integer A handle to the window to convert the coordinates for

##Return value The converted x and y coordinates.

##Notes Converts the screen coordinates of ScreenPoint into client-area coordinates. (The distinction is the same as RB's System.MouseX vs. Control.MouseX)

##See also

Clone this wiki locally