网站首页  词典首页

请输入您要查询的函数:

 

术语 getancestor
释义 GetAncestor
语法:
HWND GetAncestor( HWND hwnd,
UINT gaFlags
);
GetAncestor函数
检索的GetAncestor函数的句柄指定窗口的祖先。
参数
hwnd
[in]的窗口句柄,其祖先是要检索。如果这个参数是桌面窗口,函数返回NULL。
gaFlags
[in]指定要检索的祖先。此参数可以是下列值之一。
GA_PARENT
检索父窗口。这不包括业主,因为它与GetParent功能。
GA_ROOT
检索根窗口步行的父窗口链。
GA_ROOTOWNER
检索拥有根窗口步行的父母和GetParent返回的所有者窗口链。
返回值
返回值是处理窗口的祖先。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低经营systemsWindows 98时,Windows NT 4.0 SP4中
UnicodeImplemented为Unicode版本。
参见
视窗概述,GetParent
==英文原文==GetAncestor Function
The GetAncestor function retrieves the handle to the ancestor of the specified window.
Syntax
HWND GetAncestor( HWND hwnd,
UINT gaFlags
);
Parameters
hwnd
[in] Handle to the window whose ancestor is to be retrieved. If this parameter is the desktop window, the function returns NULL.
gaFlags
[in] Specifies the ancestor to be retrieved. This parameter can be one of the following values.
GA_PARENT
Retrieves the parent window. This does not include the owner, as it does with the GetParent function.
GA_ROOT
Retrieves the root window by walking the chain of parent windows.
GA_ROOTOWNER
Retrieves the owned root window by walking the chain of parent and owner windows returned by GetParent.
Return Value
The return value is the handle to the ancestor window.
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 98, Windows NT 4.0 SP4
UnicodeImplemented as Unicode version.
See Also
Windows Overview , GetParent
==原始网址==http://msdn.microsoft.com/en-us/library/ms633502(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:26:00