資源簡介
ImageList加載BMP在ListCtrl中顯示的Demo,一個測試Demo,沒什么好說明的了,

代碼片段和文件信息
//?ImageListTest.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“ImageListTest.h“
#include?“ImageListTestDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CImageListTestApp
BEGIN_MESSAGE_MAP(CImageListTestApp?CWinApp)
//{{AFX_MSG_MAP(CImageListTestApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CImageListTestApp?construction
CImageListTestApp::CImageListTestApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CImageListTestApp?object
CImageListTestApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CImageListTestApp?initialization
BOOL?CImageListTestApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CImageListTestDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????40020??2011-05-05?11:20??ImageListTest\ImageListTest.aps
?????文件???????1218??2011-05-05?11:44??ImageListTest\ImageListTest.clw
?????文件???????2161??2011-05-05?10:58??ImageListTest\ImageListTest.cpp
?????文件???????4418??2011-05-05?11:14??ImageListTest\ImageListTest.dsp
?????文件????????549??2011-05-05?10:58??ImageListTest\ImageListTest.dsw
?????文件???????1401??2011-05-05?10:58??ImageListTest\ImageListTest.h
?????文件??????41984??2011-05-05?11:44??ImageListTest\ImageListTest.ncb
?????文件??????49664??2011-05-05?11:44??ImageListTest\ImageListTest.opt
?????文件????????998??2011-05-05?11:44??ImageListTest\ImageListTest.plg
?????文件???????5647??2011-05-05?11:20??ImageListTest\ImageListTest.rc
?????文件???????5766??2011-05-05?11:44??ImageListTest\ImageListTestDlg.cpp
?????文件???????1430??2011-05-05?10:59??ImageListTest\ImageListTestDlg.h
?????文件???????3705??2011-05-05?10:58??ImageListTest\ReadMe.txt
?????文件???????1270??2011-05-05?11:11??ImageListTest\res\bitmap2.bmp
?????文件???????2816??2011-05-05?11:00??ImageListTest\res\face.bmp
?????文件???????1078??2011-05-05?10:58??ImageListTest\res\ImageListTest.ico
?????文件????????405??2011-05-05?10:58??ImageListTest\res\ImageListTest.rc2
?????文件????????781??2011-05-05?11:11??ImageListTest\resource.h
?????文件????????215??2011-05-05?10:58??ImageListTest\StdAfx.cpp
?????文件???????1054??2011-05-05?10:58??ImageListTest\StdAfx.h
?????目錄??????????0??2011-05-05?11:11??ImageListTest\res
?????目錄??????????0??2011-05-05?11:44??ImageListTest
-----------?---------??----------?-----??----
???????????????166580????????????????????22
- 上一篇:pthread+多線程編程技術.pdf
- 下一篇:電影推薦的一個微信小程序
評論
共有 條評論