sView.h
上传用户:mywtwc
上传日期:2013-04-05
资源大小:165k
文件大小:2k
源码类别:

工具条

开发平台:

Visual C++

  1. // sView.h : interface of the CSView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_SVIEW_H__A399F9E2_7870_488B_B77F_CB92BCA0CFA7__INCLUDED_)
  5. #define AFX_SVIEW_H__A399F9E2_7870_488B_B77F_CB92BCA0CFA7__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CSView : public CView
  10. {
  11. protected: // create from serialization only
  12. CSView();
  13. DECLARE_DYNCREATE(CSView)
  14. // Attributes
  15. public:
  16. CSDoc* GetDocument();
  17. // Operations
  18. public:
  19. // Overrides
  20. // ClassWizard generated virtual function overrides
  21. //{{AFX_VIRTUAL(CSView)
  22. public:
  23. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  24. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  25. protected:
  26. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  27. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  28. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  29. //}}AFX_VIRTUAL
  30. // Implementation
  31. public:
  32. int iPaintEnd;
  33. int iPaintBeg;
  34. int iHorzPos;
  35. int iVertPos;
  36. SCROLLINFO si;
  37. int cyClient;
  38. int cxClient;
  39. int iMaxWidth;
  40. long cxCaps;
  41. long cyChar;
  42. TCHAR       szBuffer[10] ;
  43. long cxChar;
  44. virtual ~CSView();
  45. #ifdef _DEBUG
  46. virtual void AssertValid() const;
  47. virtual void Dump(CDumpContext& dc) const;
  48. #endif
  49. protected:
  50. // Generated message map functions
  51. protected:
  52. //{{AFX_MSG(CSView)
  53. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  54. afx_msg void OnSize(UINT nType, int cx, int cy);
  55. afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  56. afx_msg void OnPaint();
  57. //}}AFX_MSG
  58. DECLARE_MESSAGE_MAP()
  59. };
  60. #ifndef _DEBUG  // debug version in sView.cpp
  61. inline CSDoc* CSView::GetDocument()
  62.    { return (CSDoc*)m_pDocument; }
  63. #endif
  64. /////////////////////////////////////////////////////////////////////////////
  65. //{{AFX_INSERT_LOCATION}}
  66. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  67. #endif // !defined(AFX_SVIEW_H__A399F9E2_7870_488B_B77F_CB92BCA0CFA7__INCLUDED_)