www.pudn.com > as.rar > asView.h
// asView.h : interface of the CAsView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_ASVIEW_H__23D662DE_B221_4F52_A7DE_5A207EF1CF40__INCLUDED_)
#define AFX_ASVIEW_H__23D662DE_B221_4F52_A7DE_5A207EF1CF40__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CAsView : public CView
{
protected: // create from serialization only
CAsView();
DECLARE_DYNCREATE(CAsView)
// Attributes
public:
CAsDoc* GetDocument();
CString m_strLine;
int m_nIndex;
CMenu menu;
CStringArray m_strArray;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAsView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CAsView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
afx_msg void OnContextMenu(CWnd*, CPoint point);
//{{AFX_MSG(CAsView)
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
afx_msg void OnPhone1();
afx_msg void OnPhone2();
afx_msg void OnPhone3();
};
#ifndef _DEBUG // debug version in asView.cpp
inline CAsDoc* CAsView::GetDocument()
{ return (CAsDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ASVIEW_H__23D662DE_B221_4F52_A7DE_5A207EF1CF40__INCLUDED_)