Places the handle of the window that the point pt belongs to on the screen into wh.
Syntax
int _FindWindow(WHANDLE FAR *wh, Point pt)
WHANDLE FAR *wh; /* Pointer to window handle. */
Point pt; /* Point. */
Remarks
_FindWindow( ) returns an integer indicating the portion of the window where the point is located. For example, _FindWindow( ) returns the value inContent if the point is inside the window.
Possible return values, as defined in PRO_EXT.H, are listed in the following table.
_FindWindow( ) Return Values
Value | Point Location |
inBorder | In the window border |
inHelp | In the help region |
inContent | In the content/text area |
inDrag | On the title bar |
inGrow | On the size control |
inGoAway | On the close box |
inZoom | On the zoom control |
inVUpArrow | On the up arrow in the vertical scroll bar |
inVDownArrow | On the down arrow in the vertical scroll bar |
inVPageUp | In the page up region of the vertical scroll bar |
inVPageDown | In the page down region of the vertical scroll bar |
inVThumb | On the thumb in the vertical scroll bar |
inHUpArrow | On the right arrow in the horizontal scroll bar |
inHDownArrow | On the left arrow in the horizontal scroll bar |
inHPageUp | In the page right region of the horizontal scroll bar |
inHPageDown | In the page left region of the horizontal scroll bar |
inHThumb | On the thumb in the horizontal scroll bar |
inMenuBar | On the menu bar |
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.