?? studentdlg.h
字號:
// StudentDlg.h : header file
//
//{{AFX_INCLUDES()
#include "msflexgrid.h"
//}}AFX_INCLUDES
#include <string>
#include <fstream>
#include <time.h>
using namespace std;
#include "StudentList.h"
#if !defined(AFX_STUDENTDLG_H__C922DB95_97CD_4536_8C97_E194CEC07C60__INCLUDED_)
#define AFX_STUDENTDLG_H__C922DB95_97CD_4536_8C97_E194CEC07C60__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CStudentDlg dialog
class CStudentDlg : public CDialog
{
// Construction
public:
CStudentDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CStudentDlg)
enum { IDD = IDD_STUDENT_DIALOG };
CButton m_Locate;
CButton m_Delete;
CButton m_Update;
CButton m_Insert;
CButton m_Sort;
CComboBox m_Class;
CComboBox m_Course;
CComboBox m_Period;
CString m_ID;
CString m_Name;
CMSFlexGrid m_Grid;
float m_Exercise;
float m_Report;
float m_Midterm;
float m_Terminal;
float m_Mark;
float m_Average;
float m_StdDev;
int m_CountA;
int m_CountE;
CString m_Time;
CString m_Userid;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CStudentDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
StudentList m_studentlist; // 聲明學生線性表
// CDatabase m_database; // 聲明數(shù)據(jù)庫對象
void UpdateGrid(); // 聲明表格刷新函數(shù)
// Generated message map functions
//{{AFX_MSG(CStudentDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnSelchangeComboClass();
afx_msg void OnSelchangeComboPeriod();
afx_msg void OnButtonExit();
afx_msg void OnButtonSort();
afx_msg void OnSelchangeComboCourse();
afx_msg void OnButtonClac();
afx_msg void OnButtonInsert();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnButtonDelete();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnClickMsflexgrid();
afx_msg void OnChangeEditExercise();
afx_msg void OnChangeEditMidterm();
afx_msg void OnChangeEditReport();
afx_msg void OnChangeEditTerminal();
afx_msg void OnButtonUpdate();
afx_msg void OnButtonUserman();
afx_msg void OnButtonLocate();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
ADODB::_RecordsetPtr m_pRecordset_Std;
ADODB::_ConnectionPtr m_pConnection_Std;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STUDENTDLG_H__C922DB95_97CD_4536_8C97_E194CEC07C60__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -