www.pudn.com > 通讯录管理程序源代码(c).rar > Page1.h


#if !defined(AFX_PAGE1_H__6BF5A502_AC39_4561_9200_66FD6AB779A7__INCLUDED_) 
#define AFX_PAGE1_H__6BF5A502_AC39_4561_9200_66FD6AB779A7__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// Page1.h : header file 
// 
#include "MyRecordset.h" 
#include "newedit.h" 
///////////////////////////////////////////////////////////////////////////// 
// CPage1 dialog 
 
class CPage1 : public CPropertyPage 
{ 
	DECLARE_DYNCREATE(CPage1) 
 
// Construction 
public: 
	 
	CBrush m_brush; 
	CPage1(); 
	~CPage1(); 
    CDatabase*  m_database; 
	CMyRecordset* m_pSet; 
// Dialog Data 
	//{{AFX_DATA(CPage1) 
	enum { IDD = IDD_DETAIL_DIALOG }; 
	CNewEdit	m_edittelphone; 
	CNewEdit	m_editsex; 
	CNewEdit	m_editrelation; 
	CNewEdit	m_editposition; 
	CNewEdit	m_editpager; 
	CNewEdit	m_editname; 
	CNewEdit	m_editmobile; 
	CNewEdit	m_editintroduction; 
	CNewEdit	m_editemail; 
	CNewEdit	m_editcompany; 
	CNewEdit	m_editage; 
	CNewEdit	m_editaddress; 
	CString	m_address; 
	CString	m_company; 
	CString	m_email; 
	CString	m_introduction; 
	CString	m_mobile; 
	CString	m_name; 
	CString	m_pager; 
	CString	m_position; 
	CString	m_relation; 
	CString	m_sex; 
	CString	m_telphone; 
	int		m_age; 
	//}}AFX_DATA 
 
 
// Overrides 
	// ClassWizard generate virtual function overrides 
	//{{AFX_VIRTUAL(CPage1) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	// Generated message map functions 
	//{{AFX_MSG(CPage1) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnNext(); 
	afx_msg void OnFirst(); 
	afx_msg void OnLast(); 
	afx_msg void OnPrev(); 
	afx_msg void OnEditrecord(); 
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); 
	afx_msg void OnAppendrecord(); 
	afx_msg void OnDeleterecord(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
private: 
	BOOL isEmpty(); 
	void SetNoRecordBtnState(); 
    BOOL isEdit; 
	BOOL isAppend; 
	void ClearEditText(); 
	void SetButtonText(BOOL blSet); 
	void SetNavButtonVisible(int isVisible); 
	void SetEditReadOnly(BOOL isReadOnly); 
	void SetValue(); 
	void SetButtonState(); 
	void GetValue(); 
	BOOL IsFirstRecord(); 
    BOOL IsLastRecord(); 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_PAGE1_H__6BF5A502_AC39_4561_9200_66FD6AB779A7__INCLUDED_)