共用方式為


CWindow::GetTopLevelParent

Retrieves the window's top-level parent window.

HWND GetTopLevelParent( ) const throw();

Return Value

The handle to the top-level parent window.

Requirements

Header: atlwin.h

See Also

Reference

CWindow Class

CWindow::GetParent

CWindow::GetTopLevelWindow

CWindow::GetWindow