共用方式為


CDocTemplate::SetPreviewInfo

Sets up the out of process preview handler.

void SetPreviewInfo(
   UINT nIDPreviewFrame,
   CRuntimeClass* pPreviewFrameClass = NULL,
   CRuntimeClass* pPreviewViewClass = NULL
);

Parameters

  • nIDPreviewFrame
    Specifies a resource ID of the preview frame.

  • pPreviewFrameClass
    Specifies a pointer to a runtime class information structure of the preview frame.

  • pPreviewViewClass
    Specifies a pointer to a runtime class information structure of the preview view.

Requirements

Header: afxwin.h

See Also

Reference

CDocTemplate Class