Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - screentoclient() converts screens coordinates in client coordinates http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ScreenToClient()       Converts screens coordinates in Client coordinates
--------------------------------------------------------------------------------

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

                        This function converts the screen coordinates of a
                        given point on the screen to client coordinates.

   Parameters:

   <hWnd>               Is the handle of the window whose client area is
                        used for the conversion.

   <aPoint>             An array of two elements that holds the
                        coordinates of the point. The two elements of this
                        array are transformed acordingly with the new
                        calculated values.

   Returns:             Nothing. The result is placed inside the same array.

   Sample:              local aPoint := { 100, 120 }

                        ScreenToClient( oWnd:hWnd, aPoint )

                        ? aPoint[ 1 ]
                        ? aPoint[ 2 ]

   Source code:         SOURCE\\WINAPI\\Clt2Scr.c

   See also:            ClientToScreen()


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