请指点一下!!!

lanhuo6 2004-08-17 02:32:47
程序中有一句(CRegWizard *) GetParent()
请问GetParent()是什么意思,整句是什么意思??
...全文
125 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
bohut 2004-08-17
  • 打赏
  • 举报
回复
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.
huaboy408 2004-08-17
  • 打赏
  • 举报
回复
获取指向父类的指针

18,356

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 网络编程
c++c语言开发语言 技术论坛(原bbs)
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧