_GlobalToLocalP( ) API Library Routine

See Also   Example

Translates a point in screen-relative pixel coordinates to window-relative pixel coordinates.

Syntax

void _GlobalToLocalP(Point FAR *pt, WHANDLE wh)
Point FAR *pt;               /* Point. */
WHANDLE wh;            /* Window handle. */

Remarks

Before calling _GlobalToLocalP( ), call _FindWindow( ) to determine which window owns the point.

For more information on how to create an API library and integrate it with Visual FoxPro, see Chapter 28, Accessing the Visual FoxPro API, in the Programmer's Guide.