fund2dlg.h

来自「文件操作」· C头文件 代码 · 共 86 行

H
86
字号
// Fund2Dlg.h : header file
//

#if !defined(AFX_FUND2DLG_H__8958FCEA_37C6_44D8_8940_A5749DCC35CC__INCLUDED_)
#define AFX_FUND2DLG_H__8958FCEA_37C6_44D8_8940_A5749DCC35CC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <vector>
#include <fstream.h>
#include <string>
/////////////////////////////////////////////////////////////////////////////
// CFund2Dlg dialog

using namespace std ;
struct StuInfo{
	char name[10];
	char address[50];
	char phone[20];
	char email[30];
	char birthday[20];
	char photofile[150];
	char sex[10];
	char hobby[100];
};

class CFund2Dlg : public CDialog
{
// Construction
public:
	void LoadBmp(CString pathname);
	void Display();
	vector<StuInfo>::iterator m_StuIndex;
	vector<StuInfo> m_Records;
	CFund2Dlg(CWnd* pParent = NULL);	// standard constructor
	CString Filename;
// Dialog Data
	//{{AFX_DATA(CFund2Dlg)
	enum { IDD = IDD_FUND2_DIALOG };
	CStatic	m_Pic;
	CString	m_address;
	CString	m_birthday;
	CString	m_email;
	CString	m_name;
	CString	m_phone;
	CString	m_photoroute;
	CString	m_hobby;
	CString	m_sex;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CFund2Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnPrevious();
	afx_msg void OnNext();
	afx_msg void OnLoad();
	afx_msg void OnApply();
	afx_msg void OnSave();
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnChangePhoto();
	afx_msg void OnAdd();
	afx_msg void OnDel();
	afx_msg void OnButton9();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_FUND2DLG_H__8958FCEA_37C6_44D8_8940_A5749DCC35CC__INCLUDED_)

⌨️ 快捷键说明

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