Win32.ScreenToClient - charonn0/WinLib GitHub Wiki
#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