資源簡介
學生管理系統,用MFC編的的一個簡單的學生管理系統
代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“學生管理系統.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
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?construction/destruction
CMainframe::CMainframe()
{
//?TODO:?add?member?initialization?code?here
}
CMainframe::~CMainframe()
{
}
int?CMainframe::OnCreate(LPCREATESTRUCT?lpCreateStruct)
{
if?(CframeWnd::OnCreate(lpCreateStruct)?==?-1)
return?-1;
if?(!m_wndToolBar.CreateEx(this?TBstyle_FLAT?WS_CHILD?|?WS_VISIBLE?|?CBRS_TOP
|?CBRS_GRIPPER?|?CBRS_TOOLTIPS?|?CBRS_FLYBY?|?CBRS_SIZE_DYNAMIC)?||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed?to?create?toolbar\n“);
return?-1;??????//?fail?to?create
}
if?(!m_wndStatusBar.Create(this)?||
!m_wndStatusBar.SetIndicators(indicators
??sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed?to?create?status?bar\n“);
return?-1;??????//?fail?to?create
}
//?TODO:?Delete?these?three?lines?if?you?don‘t?want?the?toolbar?to
//??be?dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return?0;
}
BOOL?CMainframe::PreCreateWindow(CREATESTRUCT&?cs)
{
if(?!CframeWnd::PreCreateWindow(cs)?)
return?FALSE;
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?diagnostics
#ifdef?_DEBUG
void?CMainframe::AssertValid()?const
{
CframeWnd::AssertValid();
}
void?CMainframe::Dump(CDumpContext&?dc)?const
{
CframeWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?message?handlers
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????19766??2010-01-06?13:46??學生管理系統\Debug\MainFrm.obj
?????文件?????107159??2010-01-06?13:46??學生管理系統\Debug\StdAfx.obj
?????文件?????230400??2010-01-06?15:29??學生管理系統\Debug\vc60.idb
?????文件?????372736??2010-01-06?15:28??學生管理系統\Debug\vc60.pdb
?????文件?????122935??2010-01-06?15:29??學生管理系統\Debug\學生管理系統.exe
?????文件?????369668??2010-01-06?15:29??學生管理系統\Debug\學生管理系統.ilk
?????文件??????22470??2010-01-06?14:55??學生管理系統\Debug\學生管理系統.obj
?????文件????5798908??2010-01-06?13:46??學生管理系統\Debug\學生管理系統.pch
?????文件?????500736??2010-01-06?15:29??學生管理系統\Debug\學生管理系統.pdb
?????文件???????8352??2010-01-06?15:07??學生管理系統\Debug\學生管理系統.res
?????文件??????16846??2010-01-06?13:46??學生管理系統\Debug\學生管理系統Doc.obj
?????文件??????14161??2010-01-06?13:46??學生管理系統\Debug\學生管理系統Set.obj
?????文件??????33365??2010-01-06?15:28??學生管理系統\Debug\學生管理系統View.obj
?????文件???????2513??2010-01-05?16:25??學生管理系統\MainFrm.cpp
?????文件???????1581??2010-01-05?16:25??學生管理系統\MainFrm.h
?????文件???????4278??2010-01-05?16:25??學生管理系統\ReadMe.txt
?????文件???????1198??2010-01-05?16:25??學生管理系統\res\Toolbar.bmp
?????文件???????1078??2010-01-05?16:25??學生管理系統\res\學生管理系統.ico
?????文件????????404??2010-01-05?16:25??學生管理系統\res\學生管理系統.rc2
?????文件???????1078??2010-01-05?16:25??學生管理系統\res\學生管理系統Doc.ico
?????文件???????1287??2010-01-05?17:32??學生管理系統\Resource.h
?????文件????????214??2010-01-05?16:25??學生管理系統\StdAfx.cpp
?????文件???????1105??2010-01-05?16:25??學生管理系統\StdAfx.h
?????文件??????30788??2010-01-06?15:27??學生管理系統\學生管理系統.aps
?????文件???????3585??2010-01-06?15:29??學生管理系統\學生管理系統.clw
?????文件???????4070??2010-01-05?16:25??學生管理系統\學生管理系統.cpp
?????文件???????4847??2010-01-05?16:25??學生管理系統\學生管理系統.dsp
?????文件????????532??2010-01-05?16:25??學生管理系統\學生管理系統.dsw
?????文件???????1336??2010-01-05?16:25??學生管理系統\學生管理系統.h
?????文件??????82944??2010-01-06?15:29??學生管理系統\學生管理系統.ncb
............此處省略21個文件信息
- 上一篇:汽車租賃網站(畢業設計源代碼)
- 下一篇:易語言:臺服彩虹島輔助
評論
共有 條評論