www.pudn.com > vc应用ADO读取数据库中内容包括图片.rar > EditAdd1.h


#if !defined(AFX_EDITADD1_H__AF6392A9_31E9_4132_9E2B_622518FF27CE__INCLUDED_) 
#define AFX_EDITADD1_H__AF6392A9_31E9_4132_9E2B_622518FF27CE__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// EditAdd1.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CEditAdd dialog 
 
class CEditAdd : public CDialog 
{ 
// Construction 
public: 
	HBITMAP			m_hPhotoBitmap; 
	DWORD			m_nFileLen; 
	char			*m_pBMPBuffer; 
 
	void DestroyPhoto(); 
	BOOL LoadBMPFile(const char *pBMPPathname); 
	HBITMAP BufferToHBITMAP(); 
	void DrawUserPhoto(int x, int y, CDC *pDC); 
 
	BOOL DestroyWindow(); 
 
	 
	int m_nSex;	//性别变量 
	int m_bKind;	//判断该对话框的使用类型 1:add,2:edit 
	CEditAdd(CWnd* pParent = NULL);   // standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CEditAdd) 
	enum { IDD = IDD_DLGEDITADD }; 
	CButton	m_btnOk; 
	CComboBox	m_ComboBoxSex; 
	CString	m_strName; 
	int		m_nAge; 
	CString	m_strMajor; 
	CString	m_strHome; 
	CString	m_strCollege; 
	//}}AFX_DATA 
 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CEditAdd) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
 
	// Generated message map functions 
	//{{AFX_MSG(CEditAdd) 
	afx_msg void OnSelectphoto(); 
	afx_msg void OnPaint(); 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSelchangeSex(); 
	afx_msg void OnChangeName(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_EDITADD1_H__AF6392A9_31E9_4132_9E2B_622518FF27CE__INCLUDED_)