📄 stuidlg.h
字号:
#if !defined(AFX_STUIDLG_H__FFEB6D2E_CEC0_4528_9634_6443D7DCBCCF__INCLUDED_)
#define AFX_STUIDLG_H__FFEB6D2E_CEC0_4528_9634_6443D7DCBCCF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// StuIdlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CStuIdlg dialog
class CStuIdlg : public CDialog
{
// Construction
public:
CStuIdlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CStuIdlg)
enum { IDD = IDD_DLG_STUI };
CString m_address;
CString m_content;
CString m_name;
CString m_dorm;
CString m_nation;
CString m_no;
CString m_phone;
CString m_polity;
int m_score;
CString m_sex;
CString m_help;
int m_birth_day;
int m_birth_month;
int m_birth_year;
CString m_source;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CStuIdlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CStuIdlg)
virtual BOOL OnInitDialog();
afx_msg void OnSetfocusEditName();
afx_msg void OnSetfocusEditNation();
afx_msg void OnSetfocusEditPhone();
afx_msg void OnSetfocusEditPolity();
afx_msg void OnSetfocusEditScore();
afx_msg void OnSetfocusEditSex();
afx_msg void OnSetfocusEditSourse();
afx_msg void OnSetfocusEditYear();
afx_msg void OnSetfocusEditMonth();
afx_msg void OnSetfocusEditDorm();
afx_msg void OnSetfocusEditDay();
afx_msg void OnSetfocusEditContent();
afx_msg void OnSetfocusEditAddress();
afx_msg void OnKillfocusEditPolity();
afx_msg void OnKillfocusEditSex();
afx_msg void OnKillfocusEditNation();
afx_msg void OnKillfocusEditDay();
virtual void OnOK();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
void GenHelp(CString tCategory);
CString KillFocus(CString strCategory,CString &strCode,int len);
BOOL UpdateDB();
void GenNext();
CString GetNextNo();
CDatabase* m_pDB;
int m_year;
//CString m_dir;
CString m_CollegeNo;
private:
CString m_sexid;
CString m_nationid;
CString m_polityid;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STUIDLG_H__FFEB6D2E_CEC0_4528_9634_6443D7DCBCCF__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -