新手求教VC中怎样做打印程序

来源:百度知道 编辑:UC知道 时间:2024/05/29 06:24:58
请教高手们,我想做一个基于对话框的打印程序,对话框上有"打印"和"打印预览"两个按扭,请问语句如何写,(请不要回复网址),谢谢,有加分!

CPrintDialog(
BOOL bPrintSetupOnly,
DWORD dwFlags = PD_ALLPAGES | PD_USEDEVMODECOPIES | PD_NOPAGENUMS | PD_HIDEPRINTTOFILE | PD_NOSELECTION,
CWnd* pParentWnd = NULL
);
----
// Display the Windows Print dialog box with "All" radio button
// initially selected. All other radio buttons are disabled.
CPrintDialog dlg1(FALSE);

// Display the Windows Print dialog box with Collate check box checked.
CPrintDialog dlg2(FALSE, PD_ALLPAGES | PD_COLLATE | PD_NOPAGENUMS | PD_HIDEPRINTTOFILE);

// Display the Windows Print dialog box with "Selection" radio
// button initially selected. "All" radio button is enabled
// but "Pages" radio button is disabled.
CPrintDialog dlg3(FALSE, PD_SELECTION | PD_USEDEVMODECOPIES);
---
呵呵,帮你在MSDN中查的,我还没学到那呢.正学着呢