-
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
-
LISTVIEW
this is the list view project for help those people who want to show image Image in List View
it can be use in show for list of products with images
- 2014-02-21 20:01:25下载
- 积分:1
-
shutdown
说明: VC++6.0编译,实现关机、重启、注销功能的实现(VC++6.0 compiler to achieve shutdown, restart, log off function of the realization)
- 2011-04-12 20:06:48下载
- 积分:1
-
DMX512
void DMX_SendPacket(void) //发送DMX512数据
{
//配置为普通IO
pDMX_buf = 0 发送起始码 00
GPIO_Tx_Config(0) //设置发送的引脚为普通IO
PA2 = 0 //输出低电平
delay_us(150) //延时150us
PA2 = 1 //输出高电平
delay_us(13) //延时13us
GPIO_Tx_Config(1) //设置发送的引脚为复用IO
//USART1->DR = 0x0100 | TXDData[0] //第0帧前导码(DMX512 receiving procedDMX512 receiving procedure ure DMX512 receDMX512 receiving procedure iving procedure DMX512 receiving procedure )
- 2016-02-19 09:23:42下载
- 积分:1
-
Hongkuangs
vc作图,已画好的红框随着鼠标的移动而移动,当鼠标点击后,红框停在鼠标点击的位置后再变化(vc mapping, has drawn a good red frame and moves with the mouse when the mouse click, mouse click to stop the red line and then change position)
- 2014-06-20 20:52:06下载
- 积分:1
-
PeMemPeLoader
从内存中加载DLL和EXE文件,支持压缩的文件.(From memory to load DLL and EXE files, compressed file support.)
- 2020-11-29 21:09:28下载
- 积分:1
-
dbg
在Debian上deb包的简易安装程序 (Deb package on Debian Installer Easy )
- 2013-09-21 18:20:15下载
- 积分:1
-
GDIPlusDemo
使用GDIPlus显示图片的一个小例子,用的vs2010开发,win7默认自带了gdi+的头文件和lib文件(GDIPlus display the picture of a small example with vs2010 development, win7 default comes with the header files and lib files in gdi+)
- 2012-08-09 14:25:43下载
- 积分:1
-
MapXGPS
基于MapX的GPS车辆监控的源码 GIS编程(MapX-based GPS vehicle monitoring source GIS Programming)
- 2009-11-18 09:30:37下载
- 积分:1
-
WVSG
dsp28335程序,实现虚拟同步发电机的逆变器控制策略(dsp VSG)
- 2021-02-18 08:59:45下载
- 积分:1