CWindow::GetParent
检索直接父窗口。
HWND GetParent( ) const throw();
备注
在参见 Windows SDK的 GetParent。
示例
// The following example attaches a HWND to the CWindow object
// and calls CWindow::GetParent to find out the parent
// window of the window wrapped by CWindow object.
CWindow myWindow;
myWindow.Attach(hWnd);
HWND hWndParent = myWindow.GetParent();
要求
Header: atlwin.h