共用方式為


CWindow::GetTopLevelWindow

Retrieves the window's top-level parent or owner window.

HWND GetTopLevelWindow( ) const throw();

Return Value

The handle to the top-level owner window.

Requirements

Header: atlwin.h

See Also

Reference

CWindow Class

CWindow::GetTopLevelParent

CWindow::GetWindow

Other Resources

CWindow Members