資源簡介
VC/MFC 創建 可編輯節點的 樹形控件

代碼片段和文件信息
//?EditTreeControl.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“EditTreeControl.h“
#include?“EditTreeControlDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CEditTreeControlApp
BEGIN_MESSAGE_MAP(CEditTreeControlApp?CWinApp)
//{{AFX_MSG_MAP(CEditTreeControlApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CEditTreeControlApp?construction
CEditTreeControlApp::CEditTreeControlApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CEditTreeControlApp?object
CEditTreeControlApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CEditTreeControlApp?initialization
BOOL?CEditTreeControlApp::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
CEditTreeControlDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2011-07-20?18:01??EditTreeControl\
?????文件????????1253??2008-03-16?19:01??EditTreeControl\EditTreeControl.clw
?????文件????????2189??2008-03-16?18:00??EditTreeControl\EditTreeControl.cpp
?????文件????????4456??2008-03-16?18:00??EditTreeControl\EditTreeControl.dsp
?????文件?????????555??2008-03-16?18:00??EditTreeControl\EditTreeControl.dsw
?????文件????????1423??2008-03-16?18:00??EditTreeControl\EditTreeControl.h
?????文件????????5777??2008-03-16?19:01??EditTreeControl\EditTreeControl.rc
?????文件????????6689??2008-03-16?19:01??EditTreeControl\EditTreeControlDLG.cpp
?????文件????????1681??2008-03-16?18:50??EditTreeControl\EditTreeControlDLG.h
?????文件????????3741??2008-03-16?18:00??EditTreeControl\ReadMe.txt
?????目錄???????????0??2011-07-20?18:01??EditTreeControl\res\
?????文件?????????829??2008-03-16?18:50??EditTreeControl\Resource.h
?????文件????????1078??2008-03-16?18:00??EditTreeControl\res\EditTreeControl.ico
?????文件?????????407??2008-03-16?18:00??EditTreeControl\res\EditTreeControl.rc2
?????文件????????1234??2008-03-16?16:51??EditTreeControl\res\Ledgoff.bmp
?????文件????????1234??2008-03-16?16:50??EditTreeControl\res\Ledgon.bmp
?????文件?????????217??2008-03-16?18:00??EditTreeControl\StdAfx.cpp
?????文件????????1054??2008-03-16?18:00??EditTreeControl\StdAfx.h
- 上一篇:多關鍵字排序C語言
- 下一篇:利用遺傳算法解決TSP問題c++
評論
共有 條評論