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

📄 myalview.h

📁 一个非常简单地址簿程序
💻 H
字号:
// MyALView.h : interface of the CMyALView class
//
/////////////////////////////////////////////////////////////////////////////
#include "MultiColumnSortListView.h"
#include "MyALDoc.h"
#include "FindDlg.h"
#if !defined(AFX_MYALVIEW_H__894F65E3_454D_4F97_92E2_A9F31857F6A2__INCLUDED_)
#define AFX_MYALVIEW_H__894F65E3_454D_4F97_92E2_A9F31857F6A2__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CFindDlg;
class CMyALView : public CMultiColumnSortListView
{
protected: // create from serialization only
	CMyALView();
	DECLARE_DYNCREATE(CMyALView)

// Attributes
public:
	CMyALDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyALView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	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);
	//}}AFX_VIRTUAL

// Implementation
public:
	int m_nSortState;
	int m_nSortNumber;
	BOOL IsDiplay(long lID);
	void DisplayAllRecord();
	void Search();
	CFindDlg* m_pFindDlg;
	void UpDateView(int i);
	BOOL DisplayRecord();
	virtual ~CMyALView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMyALView)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnAddnew();
	afx_msg void OnDel();
	afx_msg void OnModify();
	afx_msg void OnUpdateModify(CCmdUI* pCmdUI);
	afx_msg void OnUpdateDel(CCmdUI* pCmdUI);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnFind();
	afx_msg void OnDisplaypart();
	afx_msg void OnBrower();
	afx_msg void OnUpdateDisplaypart(CCmdUI* pCmdUI);
	afx_msg void OnSortid();
	afx_msg void OnUpdateSortid(CCmdUI* pCmdUI);
	afx_msg void OnSortname();
	afx_msg void OnUpdateSortname(CCmdUI* pCmdUI);
	afx_msg void OnCotactTel();
	afx_msg void OnUpdateCotactTel(CCmdUI* pCmdUI);
	afx_msg void OnFamilyTel();
	afx_msg void OnUpdateFamilyTel(CCmdUI* pCmdUI);
	afx_msg void OnUnitTel();
	afx_msg void OnUpdateUnitTel(CCmdUI* pCmdUI);
	afx_msg void OnHandset();
	afx_msg void OnUpdateHandset(CCmdUI* pCmdUI);
	afx_msg void OnEmail();
	afx_msg void OnUpdateEmail(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in MyALView.cpp
inline CMyALDoc* CMyALView::GetDocument()
   { return (CMyALDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_MYALVIEW_H__894F65E3_454D_4F97_92E2_A9F31857F6A2__INCLUDED_)

⌨️ 快捷键说明

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