sView.h
上传用户:mywtwc
上传日期:2013-04-05
资源大小:165k
文件大小:2k
- // sView.h : interface of the CSView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_SVIEW_H__A399F9E2_7870_488B_B77F_CB92BCA0CFA7__INCLUDED_)
- #define AFX_SVIEW_H__A399F9E2_7870_488B_B77F_CB92BCA0CFA7__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CSView : public CView
- {
- protected: // create from serialization only
- CSView();
- DECLARE_DYNCREATE(CSView)
- // Attributes
- public:
- CSDoc* GetDocument();
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CSView)
- 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:
- int iPaintEnd;
- int iPaintBeg;
- int iHorzPos;
- int iVertPos;
- SCROLLINFO si;
- int cyClient;
- int cxClient;
- int iMaxWidth;
- long cxCaps;
- long cyChar;
- TCHAR szBuffer[10] ;
- long cxChar;
- virtual ~CSView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CSView)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
- afx_msg void OnPaint();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #ifndef _DEBUG // debug version in sView.cpp
- inline CSDoc* CSView::GetDocument()
- { return (CSDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_SVIEW_H__A399F9E2_7870_488B_B77F_CB92BCA0CFA7__INCLUDED_)