資源簡介
一個ctreectrl控制checkbox顯示、隱藏的代碼,有興趣可以關注下。聲明:此程序來源于網絡,經本人部分修改。

代碼片段和文件信息
//?MutiTree.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“MutiTree.h“
#include?“MutiTreeDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMutiTreeApp
BEGIN_MESSAGE_MAP(CMutiTreeApp?CWinApp)
//{{AFX_MSG_MAP(CMutiTreeApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CMutiTreeApp?construction
CMutiTreeApp::CMutiTreeApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMutiTreeApp?object
CMutiTreeApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMutiTreeApp?initialization
BOOL?CMutiTreeApp::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
CMutiTreeDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????39468??2012-11-12?11:47??MutiTree\MutiTree\MutiTree.aps
?????文件???????1358??2012-02-12?13:46??MutiTree\MutiTree\MutiTree.clw
?????文件???????2091??2003-05-06?12:43??MutiTree\MutiTree\MutiTree.cpp
?????文件???????4675??2012-02-12?13:46??MutiTree\MutiTree\MutiTree.dsp
?????文件????????539??2003-05-06?12:43??MutiTree\MutiTree\MutiTree.dsw
?????文件???????1346??2003-05-06?12:43??MutiTree\MutiTree\MutiTree.h
?????文件???????2070??2012-02-12?13:46??MutiTree\MutiTree\MutiTree.plg
?????文件???????5877??2012-11-12?11:47??MutiTree\MutiTree\MutiTree.rc
?????文件????????881??2012-11-10?16:13??MutiTree\MutiTree\MutiTree.sln
????..A..H.?????46592??2012-11-12?19:28??MutiTree\MutiTree\MutiTree.suo
?????文件???????8084??2012-11-12?11:47??MutiTree\MutiTree\MutiTree.vcproj
?????文件???????5375??2012-11-12?14:25??MutiTree\MutiTree\MutiTreeCtrl.cpp
?????文件???????1901??2003-05-06?13:59??MutiTree\MutiTree\MutiTreeCtrl.h
?????文件???????8830??2012-11-12?14:42??MutiTree\MutiTree\MutiTreeDlg.cpp
?????文件???????1642??2012-11-10?17:15??MutiTree\MutiTree\MutiTreeDlg.h
?????文件???????3615??2003-05-06?12:43??MutiTree\MutiTree\ReadMe.txt
?????文件????????586??2012-11-12?13:58??MutiTree\MutiTree\res\bitmap1.bmp
?????文件????????482??2003-05-06?12:52??MutiTree\MutiTree\res\bitmap1_1.bmp
?????文件????????482??2012-11-12?11:47??MutiTree\MutiTree\res\bitmap1_2.bmp
?????文件????????374??2003-05-06?13:15??MutiTree\MutiTree\res\bitmap_l.bmp
?????文件???????1078??2003-05-06?13:11??MutiTree\MutiTree\res\MutiTree.ico
?????文件????????400??2003-05-06?12:43??MutiTree\MutiTree\res\MutiTree.rc2
????..A.SH.??????9216??2012-11-12?14:13??MutiTree\MutiTree\res\Thumbs.db
?????文件????????994??2012-11-12?11:47??MutiTree\MutiTree\resource.h
?????文件????????210??2003-05-06?12:43??MutiTree\MutiTree\StdAfx.cpp
?????文件???????1054??2003-05-06?12:43??MutiTree\MutiTree\StdAfx.h
?????目錄??????????0??2012-11-12?14:46??MutiTree\MutiTree\res
?????目錄??????????0??2012-11-12?19:29??MutiTree\MutiTree
?????目錄??????????0??2012-11-12?19:29??MutiTree
-----------?---------??----------?-----??----
............此處省略2個文件信息
- 上一篇:購物網站設計與實現
- 下一篇:czoomview Demo
評論
共有 條評論