登录
首页 » Visual C++ » B18

B18

于 2007-05-19 发布 文件大小:23KB
0 311
下载积分: 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 个回复

  • 12864xianshi
    入门用的 你ixue液晶时候看看可能会快一点(entry thelectronic)
    2012-07-18 06:45:03下载
    积分:1
  • time
    利用msinet读取服务器上的时间,进行本机时间的同步。(Use msinet read the time on the server, to synchronize the local time.)
    2013-12-25 16:04:45下载
    积分:1
  • AdapterCtl
    说明:  在Windows应用程序中禁用网卡,光驱和USB存储设备(Application in Windows to disable the network card, CD-ROM and USB storage devices)
    2009-08-18 16:38:26下载
    积分:1
  • DLL_CALL
    该源代码是我精心为朋友准备的,涵盖了各种调用方式和编译方式,花了半个月的业余时间,很高贵啊(The source code is for a friend I painstakingly prepared, covering a variety of ways and the compiler calls the way of spare time to spend half a month, a high贵啊)
    2009-04-21 19:09:20下载
    积分:1
  • zj_gps
    gps网平差 ,输入指定格式gps网测量数据,进行最小二乘平差(gps network adjustment)
    2014-11-19 22:27:08下载
    积分:1
  • 1232109-1
    一个打印出你好世界的c文件,非常简单!仅供参考! (a file describes hello world )
    2013-04-06 11:09:30下载
    积分:1
  • GTM900AT
    华为GTM900AT命令手册,对开发GPRS具有指导意义(Huawei GTM900 AT command manual,It has a guiding significance to develop GPRS )
    2012-12-06 16:48:43下载
    积分: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
  • yuandaima
    文件磁盘完整提取 插上磁盘直接获取 可以获得磁盘符 (Extract file disk full)
    2013-06-09 17:46:24下载
    积分:1
  • mymailcode
    本程序主要进行了发邮件的编写 已经调试通过了 可以进行发邮件的处理(the main procedures for the preparation of the mail has been testing can be conducted through the mail processing)
    2007-03-22 10:17:52下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载