資源簡介
學生信息管理系統,記錄學號,性別,姓名等信息,使用VC6.0的MFC編輯界面,實現增刪查改,,使用SQLServer2008

代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“mxb學生信息管理系統.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
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????8872??2016-12-29?22:26??mxb學生信息管理系統\Debug\mxb學生信息管理系統.res
?????文件??????33792??2016-12-29?22:26??mxb學生信息管理系統\Debug\vc60.idb
?????文件??????28672??2016-12-29?22:26??mxb學生信息管理系統\Debug\vc60.pdb
?????文件???????2520??2016-12-20?15:43??mxb學生信息管理系統\MainFrm.cpp
?????文件???????1581??2016-12-20?15:43??mxb學生信息管理系統\MainFrm.h
?????文件??????46060??2016-12-29?16:02??mxb學生信息管理系統\mxb學生信息管理系統.aps
?????文件???????3270??2016-12-29?22:27??mxb學生信息管理系統\mxb學生信息管理系統.clw
?????文件???????4893??2016-12-20?20:55??mxb學生信息管理系統\mxb學生信息管理系統.cpp
?????文件???????4848??2016-12-20?15:43??mxb學生信息管理系統\mxb學生信息管理系統.dsp
?????文件????????546??2016-12-20?15:43??mxb學生信息管理系統\mxb學生信息管理系統.dsw
?????文件???????1403??2016-12-20?21:10??mxb學生信息管理系統\mxb學生信息管理系統.h
?????文件??????66560??2016-12-29?22:27??mxb學生信息管理系統\mxb學生信息管理系統.ncb
?????文件??????50688??2016-12-29?22:27??mxb學生信息管理系統\mxb學生信息管理系統.opt
?????文件???????2394??2016-12-29?22:26??mxb學生信息管理系統\mxb學生信息管理系統.plg
?????文件??????14076??2016-12-29?16:02??mxb學生信息管理系統\mxb學生信息管理系統.rc
?????文件???????1730??2016-12-20?15:43??mxb學生信息管理系統\mxb學生信息管理系統Doc.cpp
?????文件???????1458??2016-12-20?15:43??mxb學生信息管理系統\mxb學生信息管理系統Doc.h
?????文件???????2553??2016-12-20?15:43??mxb學生信息管理系統\mxb學生信息管理系統View.cpp
?????文件???????2018??2016-12-20?21:46??mxb學生信息管理系統\mxb學生信息管理系統View.h
?????文件???????4511??2016-12-20?15:43??mxb學生信息管理系統\ReadMe.txt
?????文件???????1078??2016-12-20?15:43??mxb學生信息管理系統\res\mxb學生信息管理系統.ico
?????文件????????411??2016-12-20?15:43??mxb學生信息管理系統\res\mxb學生信息管理系統.rc2
?????文件???????1078??2016-12-20?15:43??mxb學生信息管理系統\res\mxb學生信息管理系統Doc.ico
?????文件???????1078??2016-12-20?15:43??mxb學生信息管理系統\res\Toolbar.bmp
?????文件???????1158??2016-12-29?15:50??mxb學生信息管理系統\resource.h
?????文件????????221??2016-12-20?15:43??mxb學生信息管理系統\StdAfx.cpp
?????文件???????1151??2016-12-20?21:16??mxb學生信息管理系統\StdAfx.h
?????目錄??????????0??2016-12-29?22:26??mxb學生信息管理系統\Debug
?????目錄??????????0??2016-12-20?15:43??mxb學生信息管理系統\res
?????目錄??????????0??2016-12-29?22:27??mxb學生信息管理系統
............此處省略3個文件信息
評論
共有 條評論