資源簡介
一套C++學生成績管理系統源碼,已在幫助剛入門C++的人員學習

代碼片段和文件信息
//?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
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-11-17?19:43??學生成績管理系統\
?????目錄???????????0??2018-11-17?19:43??學生成績管理系統\Debug\
?????文件???????20314??2010-08-23?23:57??學生成績管理系統\Debug\MainFrm.obj
?????文件??????107651??2010-08-23?23:57??學生成績管理系統\Debug\StdAfx.obj
?????文件??????225280??2008-12-02?00:34??學生成績管理系統\Debug\studentmarks.mdb
?????文件??????361472??2010-08-23?23:57??學生成績管理系統\Debug\vc60.idb
?????文件??????372736??2010-08-23?23:57??學生成績管理系統\Debug\vc60.pdb
?????文件??????127089??2010-08-23?23:57??學生成績管理系統\Debug\學生成績管理系統.exe
?????文件??????361288??2010-08-23?23:57??學生成績管理系統\Debug\學生成績管理系統.ilk
?????文件???????23046??2010-08-23?23:57??學生成績管理系統\Debug\學生成績管理系統.obj
?????文件?????5925032??2010-08-23?23:57??學生成績管理系統\Debug\學生成績管理系統.pch
?????文件??????517120??2010-08-23?23:57??學生成績管理系統\Debug\學生成績管理系統.pdb
?????文件????????8600??2008-07-06?11:27??學生成績管理系統\Debug\學生成績管理系統.res
?????文件???????17614??2010-08-23?23:57??學生成績管理系統\Debug\學生成績管理系統Doc.obj
?????文件???????15423??2010-08-23?23:57??學生成績管理系統\Debug\學生成績管理系統Set.obj
?????文件???????35373??2010-08-23?23:57??學生成績管理系統\Debug\學生成績管理系統View.obj
?????文件????????2517??2008-07-06?08:18??學生成績管理系統\MainFrm.cpp
?????文件????????1581??2008-07-06?08:18??學生成績管理系統\MainFrm.h
?????文件????????4346??2008-07-06?08:18??學生成績管理系統\ReadMe.txt
?????目錄???????????0??2018-11-17?19:43??學生成績管理系統\res\
?????文件????????1337??2008-07-06?11:21??學生成績管理系統\Resource.h
?????文件????????1198??2008-07-06?08:18??學生成績管理系統\res\Toolbar.bmp
?????文件????????1078??2008-07-06?08:18??學生成績管理系統\res\學生成績管理系統.ico
?????文件?????????408??2008-07-06?08:18??學生成績管理系統\res\學生成績管理系統.rc2
?????文件????????1078??2008-07-06?08:18??學生成績管理系統\res\學生成績管理系統Doc.ico
?????文件?????????218??2008-07-06?08:18??學生成績管理系統\StdAfx.cpp
?????文件????????1105??2008-07-06?08:18??學生成績管理系統\StdAfx.h
?????文件??????225280??2008-12-02?00:22??學生成績管理系統\studentmarks.mdb
?????文件???????47524??2010-08-28?21:48??學生成績管理系統\學生成績管理系統.aps
?????文件????????3770??2010-08-28?21:46??學生成績管理系統\學生成績管理系統.clw
?????文件????????4090??2008-07-06?08:18??學生成績管理系統\學生成績管理系統.cpp
............此處省略13個文件信息
評論
共有 條評論