CPrintDialog

时间:2023-03-09 14:22:24
CPrintDialog

CPrintDialog

封装windows为打印提供服务的通用窗体。

	BOOL GetDefaults(); //获取默认设备,不显示对话框

	// Helpers for parsing information after successful return
int GetCopies() const; // 获取份数
BOOL PrintCollate() const; // 是否选中自动分页(选中返回true,否则false)
BOOL PrintSelection() const; // 是否选中某特定页
BOOL PrintAll() const; // 是否选中全部
BOOL PrintRange() const; // 是否设置打印范围
int GetFromPage() const; // 用户设置的起始打印页
int GetToPage() const; // 用户设置的终止打印也
CString GetDriverName() const; // 返回用户选择的打印机
CString GetDeviceName() const; // 返回当前打印设备名称
CString GetPortName() const; // 返回用户选择的端口