dlgclassedit.h

来自「一个驾校学员的数据库管理软件。采用ACCESS数据库。非常方便。」· C头文件 代码 · 共 67 行

H
67
字号
#if !defined(AFX_DLGCLASSEDIT_H__3521F360_195D_11D8_8C25_000AEB143A3A__INCLUDED_)
#define AFX_DLGCLASSEDIT_H__3521F360_195D_11D8_8C25_000AEB143A3A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgClassEdit.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDlgClassEdit dialog

class CDlgClassEdit : public CDialog
{
// Construction
public: 
	long m_nOldID;
	void RemoveStudentByID(long ID);
	int FillStudents();
	CStudent* GetStudentByID(long nID);
	CDlgClassEdit(CWnd* pParent = NULL);   // standard constructor
	CTypedPtrArray <CObArray,CStudent*> m_arrStudent;

// Dialog Data
	//{{AFX_DATA(CDlgClassEdit)
	enum { IDD = IDD_DIALOG_CLASSEDIT };
	CButton	m_btnModify;
	CButton	m_btnCancel;
	CButton	m_btnSave;
	CListCtrl	m_list;
	CComboBox	m_cbxNoon;
	CButton	m_btnRemoveStudent;
	CButton	m_btnAddStudent;
	CTime	m_tmDate;
	CString	m_sAutoNo;
	CString	m_sTeacher;
	CString	m_sRemark;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgClassEdit)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgClassEdit)
	virtual BOOL OnInitDialog();
	afx_msg void OnButtonAddstudent();
	afx_msg void OnButtonRemovestudent();
	afx_msg void OnButtonModifystudent();
	virtual void OnOK();
	afx_msg void OnButtonSave();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGCLASSEDIT_H__3521F360_195D_11D8_8C25_000AEB143A3A__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?