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

📄 paddressbookview.h

📁 一个简单的c++查找,删除,添加等程序
💻 H
字号:
// PAddressBookView.h : interface of the CPAddressBookView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_PADDRESSBOOKVIEW_H__1EB0A6A5_C680_415D_8923_318686AF7D57__INCLUDED_)
#define AFX_PADDRESSBOOKVIEW_H__1EB0A6A5_C680_415D_8923_318686AF7D57__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CPAddressBookSet;

class CPAddressBookView : public CRecordView
{
protected: // create from serialization only
	CPAddressBookView();
	DECLARE_DYNCREATE(CPAddressBookView)

public:
	//{{AFX_DATA(CPAddressBookView)
	enum{ IDD = IDD_PADDRESSBOOK_FORM };
	CPAddressBookSet* m_pSet;
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA
    
// Attributes
public:
	CPAddressBookDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPAddressBookView)
	public:
	virtual CRecordset* OnGetRecordset();
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnDraw(CDC* pDC);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CPAddressBookView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	int m_nBlue;
	int m_nGreen;
	int m_nRed;

// Generated message map functions
protected:
	BOOL m_bAdding;
	//{{AFX_MSG(CPAddressBookView)
	afx_msg void OnButtonAdd();
	afx_msg void OnButtonDel();
	afx_msg void OnButtonCancel();
	afx_msg void OnRecordAdd();
	afx_msg void OnRecordClearfields();
	afx_msg void OnRecordDelete();
	afx_msg void OnRecordUpdate();
	afx_msg void OnUpdateRecordUpdate(CCmdUI* pCmdUI);
	afx_msg void OnUpdateRecordDelete(CCmdUI* pCmdUI);
	afx_msg void OnSearchRecord();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in PAddressBookView.cpp
inline CPAddressBookDoc* CPAddressBookView::GetDocument()
   { return (CPAddressBookDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_PADDRESSBOOKVIEW_H__1EB0A6A5_C680_415D_8923_318686AF7D57__INCLUDED_)

⌨️ 快捷键说明

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