資源簡介
資源包含vs2010生成的源程序和exe。mfc對話框雙緩存的源程序代碼。
實現功能:
①button1:雙緩存繪圖。
②button2:普通繪圖。
非常簡單的內容。便于新手更快理解雙緩存的操作。使用時,可結合說明的blog 地址:http://blog.csdn.net/i_likechard/article/details/53066504
代碼片段和文件信息
//?doublebuffer2.cpp?:?定義應用程序的類行為。
//
#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?構造
Cdoublebuffer2App::Cdoublebuffer2App()
{
//?支持重新啟動管理器
m_dwRestartManagerSupportFlags?=?AFX_RESTART_MANAGER_SUPPORT_RESTART;
//?TODO:?在此處添加構造代碼,
//?將所有重要的初始化放置在?InitInstance?中
}
//?唯一的一個?Cdoublebuffer2App?對象
Cdoublebuffer2App?theApp;
//?Cdoublebuffer2App?初始化
BOOL?Cdoublebuffer2App::InitInstance()
{
//?如果一個運行在?Windows?XP?上的應用程序清單指定要
//?使用?ComCtl32.dll?版本?6?或更高版本來啟用可視化方式,
//則需要?InitCommonControlsEx()。否則,將無法創建窗口。
INITCOMMONCON
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????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
- 上一篇:識別廣義表的“頭尾”
- 下一篇:c++ STL編程手冊
評論
共有 條評論