⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fileexamdlg.h

📁 一个evc下的关于文件操作的程序
💻 H
字号:
// FileExamDlg.h : header file
//

#if !defined(AFX_FILEEXAMDLG_H__BA728DBF_AB21_4097_A94C_FBBD8A7B7B05__INCLUDED_)
#define AFX_FILEEXAMDLG_H__BA728DBF_AB21_4097_A94C_FBBD8A7B7B05__INCLUDED_
#include "Afxtempl.h"
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000




/////////////////////////////////////////////////////////////////////////////
// CFileExamDlg dialog
const LPCTSTR studentfilepath=_T("\\student.dat");//存储学生信息的文件路径
#pragma  pack(push,1)
//定义学生基本信息结构
typedef struct _CStudentData
{
	TCHAR xsbh[7];//学生编号
	TCHAR xsxm[21];//学生姓名
	TCHAR xb[3];//学生性别
	TCHAR csrq[11];//出生日期
	TCHAR bjmc[50];//班级名称

}CStudentData;
#pragma pack(pop)



class CFileExamDlg : public CDialog
{
// Construction
public:
	CFileExamDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CFileExamDlg)
	enum { IDD = IDD_FILEEXAM_DIALOG };
	CButton	m_btnsave;
	CButton	m_btncancel;
	CStatic	s_xsbh;
	CStatic	s_xsxm;
	CStatic	s_xsxb;
	CStatic	s_csrq;
	CStatic	s_bjmc;
	CButton	m_delete;
	CEdit	csrq;
	CEdit	bjmc;
	CComboBox	xsxb;
	CEdit	xsxm;
	CEdit	xsbh;
	CString	m_xsbh;
	CString	m_xsxm;
	CString	m_csrq;
	CString	m_bjmc;
	CString	m_xsxb;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;
    void controlDlg();//控制控件位置及大小
	
	// Generated message map functions
	//{{AFX_MSG(CFileExamDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnBtnfirst();
	afx_msg void OnBtnprior();
	afx_msg void OnBtnnext();
	afx_msg void OnBtnlast();
	afx_msg void OnBtnadd();
	afx_msg void OnBtnedit();
	afx_msg void OnBtnsave();
	afx_msg void OnBtncancel();
	afx_msg void OnDelete();
	afx_msg void OnSetfocusEdtxsbh();
	afx_msg void OnKillfocusEdtxsbh();
	afx_msg void OnKillfocusEdtxsxm();
	afx_msg void OnSetfocusEdtxsxm();
	afx_msg void OnSetfocusEdtcsrq();
	afx_msg void OnKillfocusEdtcsrq();
	afx_msg void OnSetfocusEdtbjmc();
	afx_msg void OnKillfocusEdtbjmc();
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:

	//设置控件有效性
//	void SetControlEnable(bool aValue);
	//设置指针移动按钮的有效性
//	void SetNavigatorButton(int aValue);
};

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

#endif // !defined(AFX_FILEEXAMDLG_H__BA728DBF_AB21_4097_A94C_FBBD8A7B7B05__INCLUDED_)

⌨️ 快捷键说明

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