GetParent Function
来源:互联网 发布:java开发相关书籍 编辑:程序博客网 时间:2024/05/17 23:23
GetParent Function
The GetParent function retrieves a handle to the specified window's parent or owner.
To retrieve a handle to a specified ancestor, use the GetAncestor function.
Syntax
HWND GetParent(
HWND hWnd);
Parameters
- hWnd
- [in] Handle to the window whose parent window handle is to be retrieved.
Return Value
If the window is a child window, the return value is a handle to the parent window. If the window is a top-level window, the return value is a handle to the owner window. If the window is a top-level unowned window or if the function fails, the return value is NULL. To get extended error information, call GetLastError. For example, this would determine, when the function returns NULL, if the function failed or the window was a top-level window.
Remarks
Note that, despite its name, this function can return an owner window instead of a parent window. To obtain the parent window and not the owner, use GetAncestor with the GA_PARENT flag.
Example
For an example, see Initializing a Dialog Box.
Function Information
Minimum DLL Version user32.dllHeader Declared in Winuser.h, include Windows.hImport library User32.libMinimum operating systems Windows 95, Windows NT 3.1
See Also
Windows Overview, GetAncestor, SetParent
- GetParent Function
- GetParent
- GetParent()使用
- DoModal和GetParent
- GetOwner和GetParent
- android 视图getParent,getChildAt
- getOwner与getParent的区别
- getOwner与getParent的区别
- getparent方法的一些陷阱
- getOwner与getParent的区别
- CWnd::GetParent 和 CWnd::GetParentOwner
- cocos2dx this->getParent()的使用
- GetParent与GetOwner的区别
- GetParent与GetOwner的区别
- getOwner与getParent的区别
- getParent()与getParentFile()的区别
- view.getParent()与view.getRootView()
- 危险的两个函数GetCurrentDirectory和GetParent
- 无聊
- 驳《搜狗状告腾讯的几个重要看点》
- WindowFromPoint Function
- first things first
- 删除eclipse3.4的configuration目录导致eclipse无法启动的解决办法
- GetParent Function
- Struts学习笔记之ActionForm
- java数字转汉字大写(全)
- SmallestWindowFromPoint 获得包含指定坐标的最小窗口的句柄
- vsftp配置大全---超完整版
- void HighlightWindow( HWND hwnd, BOOL fDraw ) 高亮指定窗口
- 支付宝通过招行网上银行付钱,最多每笔500块
- pku1062 昂贵的聘礼(Memory Limit Exceeded。。。。。。)
- 使用 HTML5 构建下一代的 Web Form