共用方式為


CDocument::GetAdapter

Returns a pointer to an object implementing the IDocument interface.

virtual ATL::IDocument* GetAdapter();

Return Value

A pointer to an object implementing the IDocument interface.

Requirements

Header: afxwin.h

See Also

Reference

CDocument Class