Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>screentoclient()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ScreenToClient()
Convert a point's screen co-ordinates to client co-ordinates
------------------------------------------------------------------------------

Syntax
ScreenToClient( <hWnd>, <aPoint> )   -->   nil

Arguments
<hWnd> is a handle to the window whose client area is to be
used for the conversion.

<aPoint> is the point, specified as an array { x, y } giving
the x- and y- position of the point.

Returns
NIL.

Description
This function converts the co-ordinates in <aPoint>, assumed
to refer to a point on the screen, to new co-ordinates,
relative to the window specified.

The inverse function is ClientToScreen().

Example
aPt = { 320, 240 }
ScreenToClient( hWnd, aPt )
// now aPt[1] is x, aPt[2] is y


See Also: ClientToScreen() TrackPopupMenu()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson