RealChildWindowFromPoint function
Applies to: desktop apps only
Retrieves a handle to the child window at the specified point. The search is restricted to immediate child windows; grandchildren and deeper descendant windows are not searched.
Syntax
HWND WINAPI RealChildWindowFromPoint( __in HWND hwndParent, __in POINT ptParentClientCoords );
Parameters
- hwndParent [in]
-
Type: HWND
A handle to the window whose child is to be retrieved.
- ptParentClientCoords [in]
-
Type: POINT
A POINT structure that defines the client coordinates of the point to be checked.
Return value
Type:
Type: HWND
The return value is a handle to the child window that contains the specified point.
Remarks
RealChildWindowFromPoint treats HTTRANSPARENT areas of a standard control differently from other areas of the control; it returns the child window behind a transparent part of a control. In contrast, ChildWindowFromPoint treats HTTRANSPARENT areas of a control the same as other areas. For example, if the point is in a transparent area of a groupbox, RealChildWindowFromPoint returns the child window behind a groupbox, whereas ChildWindowFromPoint returns the groupbox. However, both APIs return a static field, even though it, too, returns HTTRANSPARENT.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
- Reference
- ChildWindowFromPoint
- Conceptual
- Windows
- Other Resources
- POINT
Send comments about this topic to Microsoft
Build date: 2/3/2012
- 1/2/2012
- ElmueSoft
Raymond Chen discusses the different methods here:
http://blogs.msdn.com/b/oldnewthing/archive/2010/12/30/10110077.aspx
"WindowFromPoint, ChildWindowFromPoint, RealChildWindowFromPoint, when will it all end?"
- 12/31/2010
- peterchen!