我要在动态切分的多视图MFC应用程序中添加一个打印功能,打印任何一个想要打印的视图窗口,有什么方法吗????请不吝赐教!!!
解决方案 »
- progress控件如何平滑显示进度
- 用户自定义数据类型与VARIANT类型的转换
- 为什么用vs2003编译好的程序,在本地可以运行,放到其他的电脑就运行不了,请高手帮帮忙?
- CSDN首页上,慧通商务招聘为什么要说是华为?难道这个也幸挂羊头卖狗肉?
- WriteFile写并口时如何得到打印机的状态?
- 如果使用代理IP访问网络
- 火急求助关于函数调用问题(在线等待!)
- VC文件存取的简单问题?
- 哪有<<Essential C++>>的电子版?高分!
- SOS!!如何在WEB页中传递参数给ACTIVEFORM??
- 循环调用WSACleanup有时导致阻塞,哪位大侠碰到过?
- socket从发送消息到接收到消息所耗时间在哪几部分?
using the combined flags: PRINTER_ENUM_LOCAL|PRINTER_ENUM_NETWORK
using the level: PRINTER_INFO_2
2.CreateDC : Create specified printer device context using PRINTER_INFO_2 gotten from above.
3.StartDoc : Passing the just created DC for start a new print document.
4.StartPage & EndPage : In the two functions, you should drawing some stuff which's from certain view. Note: you should may use StretchBlt for supporting mapping between screen and printer according their different DPI(resolution).
5.EndDoc : Finishing the print document.
6.DeleteDC: don't forget delete the DC for release resource.