Compartilhar via


CFrameWnd::GetActiveDocument

Call this member function to obtain a pointer to the current CDocument attached to the current active view.

virtual CDocument* GetActiveDocument( );

Return Value

A pointer to the current CDocument. If there is no current document, returns NULL.

Requirements

Header: afxwin.h

See Also

Reference

CFrameWnd Class

Hierarchy Chart

CFrameWnd::GetActiveView

Other Resources

CFrameWnd Members