-
B18
E:Visual_C__MFC扩展编程实例 例18
动态地抓取应用程序的屏幕图像并将其打印。
上一个实例打印的是文档的报表,而不是当前出现在屏幕上的内容。在本例中,将实现
屏幕抓取并打印其内容。M F C 为打印视提供了有限的支持, 但只要用M F C 在
C Vi e w : : O n D r a w ( )中所提供的设备环境,就可以绘制自己的视。在打印视的时候, M F C只需调
用具备打印机设备环境的O n D r a w ( )函数即可。但是,如果不绘制自己的视,例如,用一个或
者一个以上的控件窗口填充自己的视就不会打印任何东西。每个控件将使用自己的设备环境
将自己打印到屏幕,因此打印视的唯一途径就是抓取屏幕(拷贝其内容到一个位图对象)并将其
打印到打印机。由于该功能整个与位图相关,因此将该功能封装到了位图类中。(E : Visual_C__MFC expand programming examples cases 18 crawls dynamic application's screen images and their Print. Print example, a document is a statement, rather than the current appeared on the screen content. In this case, to achieve the screen crawls and print its contents. M F C Print, as provided limited support, but as long as M F C in C Vi e w : : O r a n D. w (), which provided the equipment environment, we can draw our own consideration. In Print, as when M F C only with the printer device called the environment O D r a n w () function can be. However, if we do not draw their attention, for example, or one with a control over their windows filled as it will not print anything. Controls will use their own equipment to their environment to Print Screen, Therefore, as Print i)
- 2007-05-19 19:40:37下载
- 积分:1
-
SnR_demo
RapidFinder 实现文件的查找和替换(Realize RapidFinder file search and replace)
- 2008-08-23 00:32:47下载
- 积分:1
-
AVR_ISP_programer
c code for avr group
- 2013-12-13 23:48:50下载
- 积分:1
-
Jitter
jitterbuffer实现网络数据流的抖动,可以有效解决网络带宽波动的时候音视频数据的丢包现象(jitterbuffer network data stream to achieve jitter, can be an effective solution to network bandwidth fluctuations, when the phenomenon of audio and video data packet loss)
- 2010-01-28 19:30:30下载
- 积分:1
-
serial
串口驱动程序,可替换NT下的串口驱动程序 (Serial dirver which can replace serial driver in NT)
- 2021-04-20 23:48:49下载
- 积分:1
-
sqlserverdbfz
说明: 数据库控件,用vc编写,操作sql server数据库(database controls, using vc preparation, operation sql server database)
- 2006-03-29 12:59:13下载
- 积分:1
-
Chat
异步套接字编写的网络聊天室程序,根据孙鑫VC++深入详解的例子改写,使用Visual studio 2008 SP1在Unicode编码环境下编写,可以收发中文字符。(Asynchronous socket program written in Internet chat rooms, according to Sun Xin VC++ depth Detailed examples rewritten using Visual studio 2008 SP1 environment written in Unicode encoding, you can send and receive Chinese characters.)
- 2013-11-28 14:44:55下载
- 积分:1
-
Button
MFC基本对话框里设置一个一显示就被禁用的按钮,小程序(MFC dialog box to set up a basic display to be disabled a button, a small program)
- 2010-12-29 11:25:54下载
- 积分:1
-
DrawMySlider
一个自绘的slider按钮 , 实现定制的slider外观。(A custom slider button that implements a custom slider look.)
- 2017-09-14 12:02:12下载
- 积分:1
-
registry
防WINDOWS系统注册表管理的一个VC源码(Anti-WINDOWS system registry managed by a VC-source)
- 2009-06-02 22:13:25下载
- 积分:1