COleDocObjectItem::OnPreparePrinting

此成员函数由框架调用文档的打印准备。

static BOOL OnPreparePrinting( 
   CView* pCaller, 
   CPrintInfo* pInfo, 
   BOOL bPrintAll = TRUE  
);

参数

  • pCaller
    为发送打印"命令的 CView 对象的指针。

  • pInfo
    有关介绍工作打印的 CPrintInfo 对象的指针。

  • bPrintAll
    指定整个文档是否要打印。

返回值

非零,如果成功;否则为0。

要求

Header: afxole.h

请参见

参考

COleDocObjectItem Class

层次结构图

COleDocObjectItem::OnPrint