資源簡介
VC 樹形控件與數據庫連接的典型實例代碼,實現將數據庫中的內容加入樹型控件中,并通過建立數據庫,再與樹型控件相連,實現對數據庫的訪問,從而開發完成一款可以適時讀取數據庫的動態樹形菜單控件。
代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//?Download?by?http://www.codefans.net
#include?“stdafx.h“
#include?“Ppp.h“
#include?“MainFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMainframe
IMPLEMENT_DYNCREATE(CMainframe?CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe?CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code?!
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static?UINT?indicators[]?=
{
ID_SEPARATOR???????????//?status?line?indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..A..H.???????305??2002-05-19?13:08??TreeCtrlDB\desktop.ini
?????文件???????3343??2010-01-06?15:41??TreeCtrlDB\MainFrm.cpp
?????文件???????1762??1998-05-22?10:01??TreeCtrlDB\MainFrm.h
?????文件???????3706??1998-05-22?11:40??TreeCtrlDB\Ppp.clw
?????文件???????4191??2010-01-06?15:42??TreeCtrlDB\Ppp.cpp
?????文件???????4747??2002-10-16?09:32??TreeCtrlDB\Ppp.dsp
?????文件????????531??1998-05-22?09:44??TreeCtrlDB\Ppp.dsw
?????文件???????1323??1998-05-22?09:44??TreeCtrlDB\Ppp.h
?????文件??????12891??1998-05-22?11:27??TreeCtrlDB\Ppp.rc
?????文件???????1682??1998-05-22?09:44??TreeCtrlDB\PppDoc.cpp
?????文件???????1512??1998-05-22?10:14??TreeCtrlDB\PppDoc.h
?????文件???????3987??2010-01-06?15:42??TreeCtrlDB\PppView.cpp
?????文件???????2085??1998-05-22?10:13??TreeCtrlDB\PppView.h
????..A..H.???????305??2002-05-19?13:08??TreeCtrlDB\res\desktop.ini
?????文件???????1078??1998-05-22?09:44??TreeCtrlDB\res\Ppp.ico
?????文件????????395??1998-05-22?09:44??TreeCtrlDB\res\Ppp.rc2
?????文件???????1078??1998-05-22?09:44??TreeCtrlDB\res\PppDoc.ico
?????文件???????1078??1998-05-22?09:44??TreeCtrlDB\res\Toolbar.bmp
?????文件????????956??1998-05-22?10:04??TreeCtrlDB\Resource.h
?????文件???????1542??2010-01-06?15:42??TreeCtrlDB\ShengSet.cpp
?????文件???????1354??1998-05-22?09:47??TreeCtrlDB\ShengSet.h
?????文件???????2464??1998-05-22?11:14??TreeCtrlDB\ShengView.cpp
?????文件???????1732??1998-05-22?10:15??TreeCtrlDB\ShengView.h
?????文件????????205??1998-05-22?09:44??TreeCtrlDB\StdAfx.cpp
?????文件???????1075??1998-05-22?09:54??TreeCtrlDB\StdAfx.h
?????文件?????110592??2002-10-16?09:28??TreeCtrlDB\全國.mdb
?????目錄??????????0??2010-01-06?15:39??TreeCtrlDB\res
?????目錄??????????0??2010-01-06?15:41??TreeCtrlDB
-----------?---------??----------?-----??----
???????????????165919????????????????????28
............此處省略1個文件信息
評論
共有 條評論