登录
首页 » Visual C++ » B18

B18

于 2007-05-19 发布 文件大小:23KB
0 313
下载积分: 1 下载次数: 117

代码说明:

  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)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • TCPPORTSCAN
    TCP端口扫描,可以获得指定IP段内的主机名,mac地址,存活端口,并将这些信息保存在SQLITE数据库,下次可以直接读取数据库信息,移值性好!(CP port scan, you can get within the segment specified IP host name, mac address, survival ports, and the information stored in the SQLITE database, the next can be read directly, transfer value is good!)
    2013-09-03 19:37:00下载
    积分:1
  • CC2530-in-Chinese
    德州仪器公司的CC2530芯片手册,用于ZigBee技术的IEEE 802.15.4协议的2.4GHz通信应用(CC2530-in Chinese)
    2013-10-26 18:41:11下载
    积分:1
  • Visual.C.2010
    Visual_C++2010入门经典(英文).pdf(Visual_C++2010 introduction to the classic ( English ))
    2011-10-20 11:25:59下载
    积分:1
  • Sparse-matrix
    字符匹配问题为典型的字符数组的运用问题,体现了c语言面向过程的特性,在VC6.0下能够正确编译以及运行。(The problem of character matching is a typical character array, which reflects the characteristics of C language and can be compiled and run in VC6.0. )
    2015-07-25 15:33:34下载
    积分:1
  • DISKSN
    修改硬盘序列号工具,可以用来修改硬盘序列号,对于绑定硬件的有用。(DISKSN TOOLS,FOR DISK SN,FOR WD ,FOR ,MATRIO,FOR SAMSUNG,FOR RI )
    2021-03-23 17:49:16下载
    积分:1
  • 56736264
    动态改变控件尺寸,VB精选编程学习源码,很好的参考资料。(When running the VB control intelligent or selected learning programming source code, VB select learning programming source code, a good reference.)
    2013-11-24 23:15:03下载
    积分:1
  • MeDelete
    SelfDelete(可以删除自身的VC++源码(巳通过了调试)) 为了实现程序自删除功能,我们可以通过多进程的方法解决这个问题。可执行文件在结束返回前,创建一个运行命令窗口的新进程(在Windows98中为Command进程,在Windows2000/XP中为CMD进程),当然该命令窗口以隐藏方式执行,并通过传递参数执行删除功能。为了避免可执行文件的映像还在内存中就执行删除,需要把当前进程设置为实时优先级,而命令窗口进程设置为很低的IDLE优先级,这样首先可执行文件结束返回,再运行命令窗口的删除命令,就实现了该文件自身的删除功能。 (SelfDelete (you can delete its own VC++ source code (had passed debugging)) In order to achieve the program from the delete function, we can multi-process methods to solve this problem. Return before the end of the executable file, run the command window to create a new process (in Windows98 process for the Command, in Windows2000/XP process for CMD), of course, the command window to hide the manner and to perform delete functions by passing a parameter . In order to avoid the executable file image still in memory on the implementation of delete, you need to set the current process for real-time priority, and the command window to set the process priority to low IDLE, so the end of the first return to the executable file, then run the command window delete command, the file itself to achieve the delete function. )
    2011-06-26 23:22:21下载
    积分:1
  • lpc2368-CAN
    带ID的lpc2368 CAN通信,包括初始化、中端、CAN通信和串口通信(With the ID lpc2368 CAN communications, including initialization, in the end, CAN communications and serial communication)
    2020-07-03 08:40:01下载
    积分:1
  • media
    说明:  brew sdk MP4的东西,是很好的学习东西。(brew sdk MP4)
    2010-03-16 18:00:00下载
    积分:1
  • VCPP-create-a-application-window
    VC++语言创建一个普通的应用程序窗口.为了使PlaySound函数能正常使用,编译前应做以下设置:单击Project->Setting->Link选项卡,在Category中选中General,然后在Object/Library Modules文本框中,我们看到有很多.lib的库文件,在其最后添加代码" winmm.lib"(windows多媒体库)后,单击OK。(VC++ language to create a common application window in order to make proper use PlaySound function, should be done before compiling the following settings: Click Project-> Setting-> Link tab, select General in the Category, and then in the Object/Library Modules text box, we see a lot. lib library file, add the code in its final " winmm.lib" (windows multimedia library), click OK.)
    2013-11-24 14:23:38下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载