?? page3.cpp
字號(hào):
// Page3.cpp : implementation file
//
#include "stdafx.h"
#include "cj.h"
#include "Page3.h"
#include "StudentIfoManage.h"
#include "StudentGradeManage.h"
#include "XibieManage.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPage3 property page
IMPLEMENT_DYNCREATE(CPage3, CPropertyPage)
CPage3::CPage3() : CPropertyPage(CPage3::IDD)
{
//{{AFX_DATA_INIT(CPage3)
//}}AFX_DATA_INIT
}
CPage3::~CPage3()
{
}
void CPage3::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPage3)
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPage3, CPropertyPage)
//{{AFX_MSG_MAP(CPage3)
ON_BN_CLICKED(IDC_About, OnAbout)
ON_BN_CLICKED(IDC_cmdAdd, OncmdAdd)
ON_BN_CLICKED(IDC_cmdDelet, OncmdDelet)
ON_BN_CLICKED(IDC_cmdExamKemu, OncmdExamKemu)
ON_BN_CLICKED(IDC_cmdModifPasswod, OncmdModifPasswod)
ON_BN_CLICKED(IDC_cmdOffice, OncmdOffice)
ON_BN_CLICKED(IDC_cmdStudentCourse, OncmdStudentCourse)
ON_BN_CLICKED(IDC_cmdStudentIfo, OncmdStudentIfo)
ON_BN_CLICKED(IDC_cmdTable, OncmdTable)
ON_BN_CLICKED(IDC_cmdTeacher, OncmdTeacher)
ON_BN_CLICKED(IDC_cmdXiBie_Claas, OncmdXiBieClaas)
ON_BN_CLICKED(IDC_cmdXuejie_Xueqi, OncmdXuejieXueqi)
ON_BN_CLICKED(IDC_cmdXueKeManage, OncmdXueKeManage)
ON_WM_CLOSE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPage3 message handlers
void CPage3::OnAbout()
{
// TODO: Add your control notification handler code here
}
void CPage3::OncmdAdd()
{
// TODO: Add your control notification handler code here
}
void CPage3::OncmdDelet()
{
// TODO: Add your control notification handler code here
}
void CPage3::OncmdExamKemu()
{
// TODO: Add your control notification handler code here
}
void CPage3::OncmdModifPasswod()
{
// TODO: Add your control notification handler code here
}
void CPage3::OncmdOffice()
{
CXibieManage XibieManageDlg;
XibieManageDlg.DoModal();
}
void CPage3::OncmdStudentCourse()
{
CStudentGradeManage StudentGradeManageDlg;
StudentGradeManageDlg.DoModal();
}
void CPage3::OncmdStudentIfo()
{
CStudentIfoManage StudentIfoManageDlg;
StudentIfoManageDlg.DoModal();
}
void CPage3::OncmdTable()
{
// TODO: Add your control notification handler code here
}
void CPage3::OncmdTeacher()
{
// TODO: Add your control notification handler code here
}
void CPage3::OncmdXiBieClaas()
{
// TODO: Add your control notification handler code here
}
void CPage3::OncmdXuejieXueqi()
{
// TODO: Add your control notification handler code here
}
void CPage3::OncmdXueKeManage()
{
// TODO: Add your control notification handler code here
}
void CPage3::OnOK()
{
//卸載數(shù)據(jù)庫
SQLConfigDataSource(NULL,ODBC_REMOVE_DSN,
"Microsoft Access Driver (*.mdb)",
"DSN=student\0"
"Description=student\0"
"FileType=Access\0"
"DBQ=.\\student.mdb\0"
);
OnClose();//調(diào)用OnClose()函數(shù):自定義消息函數(shù)
}
void CPage3::OnClose()
{
AfxGetMainWnd()->PostMessage(WM_CLOSE);//系統(tǒng)退出;
CPropertyPage::OnClose();
}
BOOL CPage3::OnInitDialog()
{
CPropertyPage::OnInitDialog();
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -