CWnd::GetTopLevelFrame

This method retrieves the window’s top level frame window, if any. If CWnd has no attached window, or its top-level parent is not a CFrameWnd-derived object, this method returns NULL.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

CFrameWnd* GetTopLevelFrame( ) const;

See Also

CWnd::GetTopLevelOwner, CWnd::GetTopLevelParent, CFrameWnd