CWnd::GetParent
Call this function to get a pointer to a child window's parent window (if any).
CWnd* GetParent( ) const;
See the Return Values section in GetParent in the Platform SDK.
The GetParent function returns a pointer to the immediate parent (if it exists). In contrast, the GetParentOwner function returns a pointer to the most immediate parent or owner window that is not a child window (does not have the WS_CHILD style). If you have a child window within a child window GetParent and GetParentOwner return different results.
本文介绍了 CWnd::GetParent 函数的功能,该函数用于获取子窗口的父窗口指针。文中对比了 GetParent 和 GetParentOwner 函数的区别,并解释了在不同情况下两者的返回结果。
4258

被折叠的 条评论
为什么被折叠?



