資源簡(jiǎn)介
資源包含vs2010生成的源程序和exe。mfc對(duì)話框雙緩存的源程序代碼。
實(shí)現(xiàn)功能:
①button1:雙緩存繪圖。
②button2:普通繪圖。
非常簡(jiǎn)單的內(nèi)容。便于新手更快理解雙緩存的操作。使用時(shí),可結(jié)合說明的blog 地址:http://blog.csdn.net/i_likechard/article/details/53066504
代碼片段和文件信息
//?doublebuffer2.cpp?:?定義應(yīng)用程序的類行為。
//
#include?“stdafx.h“
#include?“doublebuffer2.h“
#include?“doublebuffer2Dlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
//?Cdoublebuffer2App
BEGIN_MESSAGE_MAP(Cdoublebuffer2App?CWinApp)
ON_COMMAND(ID_HELP?&CWinApp::onhelp)
END_MESSAGE_MAP()
//?Cdoublebuffer2App?構(gòu)造
Cdoublebuffer2App::Cdoublebuffer2App()
{
//?支持重新啟動(dòng)管理器
m_dwRestartManagerSupportFlags?=?AFX_RESTART_MANAGER_SUPPORT_RESTART;
//?TODO:?在此處添加構(gòu)造代碼,
//?將所有重要的初始化放置在?InitInstance?中
}
//?唯一的一個(gè)?Cdoublebuffer2App?對(duì)象
Cdoublebuffer2App?theApp;
//?Cdoublebuffer2App?初始化
BOOL?Cdoublebuffer2App::InitInstance()
{
//?如果一個(gè)運(yùn)行在?Windows?XP?上的應(yīng)用程序清單指定要
//?使用?ComCtl32.dll?版本?6?或更高版本來啟用可視化方式,
//則需要?InitCommonControlsEx()。否則,將無法創(chuàng)建窗口。
INITCOMMONCON
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件?????155648??2016-11-07?15:07??doublebuffer2\Debug\doublebuffer2.exe
?????文件???????2084??2016-11-07?14:54??doublebuffer2\doublebuffer2\doublebuffer2.cpp
?????文件????????484??2016-11-07?14:54??doublebuffer2\doublebuffer2\doublebuffer2.h
?????文件??????10484??2016-11-07?15:07??doublebuffer2\doublebuffer2\doublebuffer2.rc
?????文件???????6034??2016-11-07?15:05??doublebuffer2\doublebuffer2\doublebuffer2.vcxproj
?????文件???????4337??2016-11-07?15:09??doublebuffer2\doublebuffer2\doublebuffer2Dlg.cpp
?????文件????????752??2016-11-07?15:05??doublebuffer2\doublebuffer2\doublebuffer2Dlg.h
?????文件??????67777??2009-08-31?02:31??doublebuffer2\doublebuffer2\res\doublebuffer2.ico
?????文件????????682??2016-11-07?14:54??doublebuffer2\doublebuffer2\res\doublebuffer2.rc2
?????文件???????1464??2016-11-07?14:56??doublebuffer2\doublebuffer2\resource.h
?????文件????????146??2016-11-07?14:54??doublebuffer2\doublebuffer2\stdafx.cpp
?????文件???????1632??2016-11-07?14:54??doublebuffer2\doublebuffer2\stdafx.h
?????文件????????234??2016-11-07?14:54??doublebuffer2\doublebuffer2\targetver.h
?????文件????????906??2016-11-07?14:54??doublebuffer2\doublebuffer2.sln
?????目錄??????????0??2016-11-08?17:57??doublebuffer2\doublebuffer2\res
?????目錄??????????0??2016-11-08?17:57??doublebuffer2\Debug
?????目錄??????????0??2016-11-08?17:58??doublebuffer2\doublebuffer2
?????目錄??????????0??2016-11-08?17:58??doublebuffer2
-----------?---------??----------?-----??----
???????????????252664????????????????????18
- 上一篇:識(shí)別廣義表的“頭尾”
- 下一篇:c++ STL編程手冊(cè)
評(píng)論
共有 條評(píng)論