[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
WindowFromPoint( nCol, nRow )-> <hWnd>
------------------------------------------------------------------------------
PARAMETER:
<nCol> The pixel col that identifies the target window
<nRow> The pixel row that identifies the target window
RETURNS:
<hWnd> is the handle of the window that contains the specified point
DESCRIPTION:
WindowFromPoint() retrieves the handle of the window that contains the
specified point. It does not retrieve the handle of a hidden, disabled, or
transparent window, even if the point is within the window.
EXAMPLE:
+--------------------------------------------------------------+
| /* Function ShowHelp */ |
| FUNCTION ShowHelp( oBtn, nRow, nCol ) |
| LOCAL aPoint := { nRow, nCol } |
| LOCAL hCtl, nID, cMsg |
| |
| ClientToScreen( oBtn:hWnd, aPoint ) |
| hCtl := WindowFromPoint( aPoint[ 2 ], aPoint[ 1 ] ) |
| nID := GetWindowWord( hCtl, -12 ) |
+--------------------------------------------------------------+
SOURCE:
SOURCE\WINAPI\WNDPT.C
See Also:
FindWindow
ClientToScreen
GetWindowWord
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson