CView中关于CPreviewView的介绍

来源:互联网 发布:mac 电源线皮破了 编辑:程序博客网 时间:2024/05/22 02:24

    The CView class also has a derived implementation class named CPreviewView, which is used by the framework to     print previewing. This class provides support for the features unique to the print-preview window, such as a toolbar, single- or double-page preview, and zooming, that is, enlarging the previewed image. You don’t need to call or override any of CPreviewView’s member functions unless you want to implement your own interface for print preview  (for example, if you want to support editing in print preview mode). For more information on using CView, see Document/View Architecture Topics and Printing in Visual C++ Programmer’s Guide. In addition, see Technical Note 30 for more details on customizing print preview.

#include <afxwin.h>

 

==============================================================================================

CView类也拥有一个名为CPreviewView的派生类,被用来为框架提供打印预览功能。这个类为窗口的打印预览提供结构特点的支持,例如toolbar、单页或者双页预览、放大和缩小被预览的图片。你不用调用或者重写任何一个CPreviewView的成员函数,除非你想为打印预览实现你自己的接口(例如,如果你想支持编辑打印预览模式)。欲了解更多有关使用CView 的信息,请在VC++程序向导查看 Document/View Architecture Topics Printing。    另外,需要更多详细资料请参看 Technical Note 30    中关于按用户要求制做打印预览。

原创粉丝点击