1 void CCPrintDialogView::OnPrint()
 2 {
 3     DWORD dwflags=PD_ALLPAGES|PD_NOPAGENUMS|PD_USEDEVMODECOPIES|PD_SELECTION|PD_HIDEPRINTTOFILE;
 4     CPrintDialog dlg(FALSE, dwflags, NULL);
 5     if(dlg.DoModal() == IDOK)
 6     {
 7         CDC dc;
 8         dc.Attach(dlg.GetPrinterDC());
 9         //DrawStr(&dc, TRUE);
10     }
11 }

效果如下:

MFC中打印对话框CPrintDialog类

相关文章:

  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2021-12-21
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2021-06-13
猜你喜欢
  • 2021-10-17
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
  • 2022-02-07
  • 2021-05-26
  • 2021-12-15
相关资源
相似解决方案