CDocTemplate::CreateOleFrame

Creates an OLE frame window.

CFrameWnd* CreateOleFrame( 
   CWnd* pParentWnd, 
   CDocument* pDoc, 
   BOOL bCreateView  
);

Parameters

  • pParentWnd
    A pointer to the frame's parent window.

  • pDoc
    A pointer to the document to which the new OLE frame window should refer.

  • bCreateView
    Determines whether a view is created along with the frame.

Return Value

A pointer to a frame window if successful; otherwise NULL.

Remarks

If bCreateView is zero, an empty frame is created.

Requirements

Header: afxwin.h

See Also

Reference

CDocTemplate Class

Hierarchy Chart

CDocTemplate::CreateNewFrame

COleDocument Class

COleIPFrameWnd Class

Other Resources

CDocTemplate Members