CWnd::GetParentFrame

CFrameWnd* GetParentFrame( ) const;

返回值:如果成功,则返回框架窗口的指针;否则返回NULL。

说明:
调用这个函数以获得父框架窗口。这个成员函数向上搜索父窗口链直到找到一个CFrameWnd(或其派生类)对象。

请参阅:
CWnd::GetDescendantWindow, CWnd::GetParent, CFrameWnd::GetActiveView