資源簡(jiǎn)介
VC++6.0 基于MFC的windows資源管理器風(fēng)格單文檔應(yīng)用程序 學(xué)生管理系統(tǒng)實(shí)現(xiàn)增刪改查學(xué)生信息

代碼片段和文件信息
//?LeftView.cpp?:?implementation?of?the?CLeftView?class
//
#include?“stdafx.h“
#include?“students.h“
#include?“studentsDoc.h“
#include?“LeftView.h“
#include?“SearchDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
#include?“Page0Dlg.h“
#include?“Page1Dlg.h“
#include?“Page2Dlg.h“
/////////////////////////////////////////////////////////////////////////////
//?CLeftView
IMPLEMENT_DYNCREATE(CLeftView?CTreeView)
BEGIN_MESSAGE_MAP(CLeftView?CTreeView)
//{{AFX_MSG_MAP(CLeftView)
ON_NOTIFY_REFLECT(TVN_SELCHANGED?OnSelStudentTree)
ON_COMMAND(ID_STU_VIEW?OnStuView)
ON_COMMAND(ID_STU_NEW?OnStuNew)
ON_NOTIFY_REFLECT(NM_DBLCLK?OnDblclkTree)
ON_COMMAND(ID_STU_DEL?OnStuDel)
ON_COMMAND(ID_BOOK_FIND?OnBookFind)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CLeftView?construction/destruction
CLeftView::CLeftView()
{
//?TODO:?add?construction?code?here
}
CLeftView::~CLeftView()
{
}
BOOL?CLeftView::PreCreateWindow(CREATESTRUCT&?cs)
{
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
return?CTreeView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
//?CLeftView?drawing
void?CLeftView::OnDraw(CDC*?pDC)
{
CStudentsDoc*?pDoc?=?GetDocument();
ASSERT_VALID(pDoc);
//?TODO:?add?draw?code?for?native?data?here
}
void?CLeftView::OnInitialUpdate()
{
CTreeCtrl&?refTreeCtrl=GetTreeCtrl();
refTreeCtrl.Modifystyle(0TVS_HASLINES|TVS_LINESATROOT|TVS_HASBUTTONS);
CTreeView::OnInitialUpdate();
//?TODO:?You?may?populate?your?TreeView?with?items?by?directly?accessing
//??its?tree?control?through?a?call?to?GetTreeCtrl().
}
/////////////////////////////////////////////////////////////////////////////
//?CLeftView?diagnostics
#ifdef?_DEBUG
void?CLeftView::AssertValid()?const
{
CTreeView::AssertValid();
}
void?CLeftView::Dump(CDumpContext&?dc)?const
{
CTreeView::Dump(dc);
}
CStudentsDoc*?CLeftView::GetDocument()?//?non-debug?version?is?inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CStudentsDoc)));
return?(CStudentsDoc*)m_pDocument;
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CLeftView?message?handlers
void?CLeftView::OnSelStudentTree(NMHDR*?pNMHDR?LRESULT*?pResult)?
{
NM_TREEVIEW*?pNMTreeView?=?(NM_TREEVIEW*)pNMHDR;
//?TODO:?Add?your?control?notification?handler?code?here
*pResult?=?0;
CTreeCtrl?&refTreeCtrl=GetTreeCtrl();
HTREEITEM?hTreeItem=refTreeCtrl.GetSelectedItem();
USERINFO?info;
memset(&info0sizeof(USERINFO));
CString?strName=refTreeCtrl.GetItemText(hTreeItem);
strcpy(info.szStudentNamestrName.GetBuffer(0));
strName.ReleaseBuffer(0);
CStudentsDoc?*pDoc=GetDocument();
pDoc->m_pCurSelect=pDoc->FindUserInfo(&info);
pDoc->Upda
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????39387??2011-10-18?21:51??students\Debug\LeftView.obj
?????文件??????25800??2011-10-18?21:51??students\Debug\MainFrm.obj
?????文件??????18908??2011-10-12?12:44??students\Debug\Page0Dlg.obj
?????文件??????22538??2011-10-12?15:33??students\Debug\Page1Dlg.obj
?????文件??????20329??2011-10-12?12:44??students\Debug\Page2Dlg.obj
?????文件??????18646??2011-10-18?21:54??students\Debug\SearchDlg.obj
?????文件?????105648??2011-10-11?21:19??students\Debug\StdAfx.obj
?????文件?????155700??2011-10-18?21:57??students\Debug\students.exe
?????文件?????475920??2011-10-18?21:57??students\Debug\students.ilk
?????文件??????22745??2011-10-18?21:51??students\Debug\students.obj
?????文件????6133756??2011-10-11?21:19??students\Debug\students.pch
?????文件?????582656??2011-10-18?21:57??students\Debug\students.pdb
?????文件??????13008??2011-10-18?21:57??students\Debug\students.res
?????文件??????24275??2011-10-12?12:44??students\Debug\studentsDoc.obj
?????文件??????34551??2011-10-18?21:51??students\Debug\studentsView.obj
?????文件?????246784??2011-10-18?21:57??students\Debug\vc60.idb
?????文件?????380928??2011-10-18?21:54??students\Debug\vc60.pdb
?????文件???????6350??2011-10-18?21:51??students\LeftView.cpp
?????文件???????2047??2011-10-18?21:48??students\LeftView.h
?????文件???????5747??2011-10-11?20:42??students\MainFrm.cpp
?????文件???????1867??2011-10-12?14:46??students\MainFrm.h
?????文件???????1646??2011-10-11?21:41??students\Page0Dlg.cpp
?????文件???????1373??2011-10-11?21:41??students\Page0Dlg.h
?????文件???????2864??2011-10-12?15:33??students\Page1Dlg.cpp
?????文件???????1489??2011-10-12?15:33??students\Page1Dlg.h
?????文件???????2126??2011-10-12?12:44??students\Page2Dlg.cpp
?????文件???????1397??2011-10-12?12:44??students\Page2Dlg.h
?????文件???????4359??2011-10-11?20:38??students\ReadMe.txt
?????文件????????326??2011-10-18?21:48??students\res\cursor1.cur
?????文件???????1078??2011-10-11?20:38??students\res\students.ico
............此處省略28個(gè)文件信息
- 上一篇:Gerver View 源碼
- 下一篇:冒險(xiǎn)島c++服務(wù)端源碼
評(píng)論
共有 條評(píng)論