网站首页  词典首页

请输入您要查询的函数:

 

术语 childwindowfrompoint
释义 ChildWindowFromPoint
语法:
HWND ChildWindowFromPoint( HWND hWndParent,
POINT Point
);
ChildWindowFromPoint功能
该ChildWindowFromPoint函数确定,如果任何儿童属于一个父窗口的窗口,包含指定的点。在搜索限制的直接子窗口。孙子,更深的子窗口都不会搜索。
要跳过某些子窗口,使用ChildWindowFromPointEx功能。
参数
hWndParent
[in]句柄父窗口。

[in] Specifies a POINT structure that defines the client coordinates (relative to hWndParent of the point to be checked.
返回值
返回值是一个句柄到子窗口中包含这一点,即使子窗口是隐藏或禁用。如果点在父窗口的谎言,返回值为NULL。如果该点在父窗口但在没有任何子窗口,返回值是一个句柄到父窗口。
备注
该系统设有一个内部列表,其中载有相关的父窗口子窗口句柄。在列表中的处理顺序取决于儿童的窗口Z序。如果有一个以上的子窗口包含指定的点,系统返回的句柄列表中包含的第一个窗口点。
ChildWindowFromPoint对待一个标准的控制HTTRANSPARENT面积相同的控制的其他地区。相反,RealChildWindowFromPoint对待不同地区的HTTRANSPARENT,它返回背后一个控件透明区域的子窗口。例如,如果该点的一个GroupBox的透明面积,ChildWindowFromPoint返回GroupBox的回报,而RealChildWindowFromPoint背后的GroupBox的子窗口。但是,这两个API返回一个静态的领域,尽管它也返回HTTRANSPARENT。
例如
有关示例,请参阅“创建一个组合框工具栏”中使用组合框。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
视窗概述,ChildWindowFromPointEx,RealChildWindowFromPoint,WindowFromPoint,点
==英文原文==ChildWindowFromPoint Function
The ChildWindowFromPoint function determines which, if any, of the child windows belonging to a parent window contains the specified point. The search is restricted to immediate child windows. Grandchildren, and deeper descendant windows are not searched.
To skip certain child windows, use the ChildWindowFromPointEx function.
Syntax
HWND ChildWindowFromPoint( HWND hWndParent,
POINT Point
);
Parameters
hWndParent
[in] Handle to the parent window.
Point
[in] Specifies a POINT structure that defines the client coordinates (relative to hWndParent of the point to be checked.
Return Value
The return value is a handle to the child window that contains the point, even if the child window is hidden or disabled. If the point lies outside the parent window, the return value is NULL. If the point is within the parent window but not within any child window, the return value is a handle to the parent window.
Remarks
The system maintains an internal list, containing the handles of the child windows associated with a parent window. The order of the handles in the list depends on the Z order of the child windows. If more than one child window contains the specified point, the system returns a handle to the first window in the list that contains the point.
ChildWindowFromPoint treats an HTTRANSPARENT area of a standard control the same as other parts of the control. In contrast, RealChildWindowFromPoint treats an HTTRANSPARENT area differently; it returns the child window behind a transparent area of a control. For example, if the point is in a transparent area of a groupbox, ChildWindowFromPoint returns the groupbox while RealChildWindowFromPoint returns the child window behind the groupbox. However, both APIs return a static field, even though it, too, returns HTTRANSPARENT.
Example
For an example, see "Creating a Combo Box Toolbar" in Using Combo Boxes .
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as Unicode version.
See Also
Windows Overview , ChildWindowFromPointEx , RealChildWindowFromPoint , WindowFromPoint , POINT
==原始网址==http://msdn.microsoft.com/en-us/library/ms632676(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:29:04