DCFlash

所属分类:Windows编程
开发工具:Visual C++
文件大小:2KB
下载次数:96
上传日期:2006-02-06 09:02:47
上 传 者microsand
说明:  使用CMemDC类解决应用程序的闪烁问题 在你的MFC程序中解决闪烁问题是个烦心的工作。你可以在书上或者网上找到关于这方面的介绍,但是介绍的技术一般都是很复杂的或者是很难应用到已经存在的程序中去。 一个京城使用的技术叫做双缓冲。双缓冲使用一个新的缓冲来画屏幕,然后把整个的屏幕显示在真正的屏幕上。 这篇文章使用了叫做CMemDC的类,这个类封装了绝大部分写入off-screen缓冲区的方法。在已经存在的MFC或者是ActiveX控件中加入CMemDC类是非常方便的。 怎样在你的MFC程序中使用CMemDC 1.在你的工程中加入memdc.h文件。 2.在stdafx.h中加入代码#include "memdc.h" 3.为窗口做WM_ERASEBKGND的消息映射 4.象下面那样改变处理消息的代码:
(use CMemDC category of applications to solve the problem flashing in your MFC process is resolved Flicker 000 bother work. You can book online or find this regard, But introducing the technology in general are very complex or difficult to apply to already existing programs. Beijing used a technique called double buffering. Double buffer using a new buffer to paint a screen, then the screen shows that the whole of the real on the screen. This article called CMemDC use of the category, this category included the majority of package off-screen buffer method. The existence of MFC or ActiveX add CMemDC category is very convenient. What in your MFC procedures used CMemDC one. In your works into memdc.h document. 2. In addition stdafx.h code# include "memdc.h" 3. For window W M_ERASEBK)

文件列表:
Flash.c (4128, 2006-02-06)

近期下载者

相关文件


收藏者