www.pudn.com > edpos.zip > EdPosView.h
// EdPosView.h : interface of the CEdPosView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_EDPOSVIEW_H__88FFA265_E6B5_11D3_8E1F_444553540000__INCLUDED_)
#define AFX_EDPOSVIEW_H__88FFA265_E6B5_11D3_8E1F_444553540000__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//SAMPLE: forward declaration to avoid header trauma
class CEdPosDoc;
class CEdPosView : public CEditView
{
protected: // create from serialization only
CEdPosView();
DECLARE_DYNCREATE(CEdPosView)
// Attributes
public:
CEdPosDoc* GetDocument();
// Operations
public:
void ComputeRowCol(int& nLine, int& nChar) const;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEdPosView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CEdPosView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CEdPosView)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in EdPosView.cpp
inline CEdPosDoc* CEdPosView::GetDocument()
{ return (CEdPosDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_EDPOSVIEW_H__88FFA265_E6B5_11D3_8E1F_444553540000__INCLUDED_)