HWND GetParent( ) const;
See GetParent in the Win32 SDK.
Remarks
Retrieves the immediate parent window.
Example
// 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(hWndFoo);
HWND hWndParent = myWindow.GetParent();
CWindow Overview | Class Members
See Also CWindow::SetParent