📄 myaddrview.h
字号:
// MyAddrView.h : interface of the CMyAddrView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MYADDRVIEW_H__8BBB4D03_F214_46E1_AB02_8F7756A80ECA__INCLUDED_)
#define AFX_MYADDRVIEW_H__8BBB4D03_F214_46E1_AB02_8F7756A80ECA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CMyAddrView : public CListView
{
protected: // create from serialization only
CMyAddrView();
DECLARE_DYNCREATE(CMyAddrView)
protected:
enum {NUM_COLUMNS = 7};
int m_cx;
BOOL m_nEdit;
int nSortedCol;
BOOL bSortAscending;
BOOL m_DisplayColumn [NUM_COLUMNS];
protected:
enum
{
COL_NAME = 0,
COL_WPHONE = 1,
COL_MPHONE = 2,
COL_HPHONE = 3,
COL_NOTE = 4,
};
static UINT m_ColumnLabelID [NUM_COLUMNS]; // list view control header IDs, loaded from resource
static int m_ColumnFormat [NUM_COLUMNS]; // list view column format
int m_ColumnWidth [NUM_COLUMNS];
CImageList* m_pImageList;
// Attributes
public:
CMyAddrDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyAddrView)
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);
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMyAddrView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CMyAddrView)
afx_msg void OnOpendb();
afx_msg void OnPopDelete();
afx_msg void OnPopNewrecord();
afx_msg void OnPopUpdate();
afx_msg void OnRefrash();
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnUpdateOpendb(CCmdUI* pCmdUI);
afx_msg void OnUpdateRefrash(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in MyAddrView.cpp
inline CMyAddrDoc* CMyAddrView::GetDocument()
{ return (CMyAddrDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MYADDRVIEW_H__8BBB4D03_F214_46E1_AB02_8F7756A80ECA__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -