coolsb_mfctestView.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // coolsb_mfctestView.h : interface of the CCoolsb_mfctestView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_COOLSB_MFCTESTVIEW_H__9540A896_BAEB_47BA_92D0_949362F82F5F__INCLUDED_)
  5. #define AFX_COOLSB_MFCTESTVIEW_H__9540A896_BAEB_47BA_92D0_949362F82F5F__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CCoolsb_mfctestView : public CView
  10. {
  11. protected: // create from serialization only
  12. CCoolsb_mfctestView();
  13. DECLARE_DYNCREATE(CCoolsb_mfctestView)
  14. // Attributes
  15. public:
  16. CCoolsb_mfctestDoc* GetDocument();
  17. // Operations
  18. public:
  19. // Overrides
  20. // ClassWizard generated virtual function overrides
  21. //{{AFX_VIRTUAL(CCoolsb_mfctestView)
  22. public:
  23. virtual void OnDraw(CDC* pDC); // overridden to draw this view
  24. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  25. //}}AFX_VIRTUAL
  26. // Implementation
  27. public:
  28. virtual ~CCoolsb_mfctestView();
  29. #ifdef _DEBUG
  30. virtual void AssertValid() const;
  31. virtual void Dump(CDumpContext& dc) const;
  32. #endif
  33. protected:
  34. int nVScrollMax, nVScrollPos, nVScrollPage;
  35. int nHScrollMax, nHScrollPos, nHScrollPage;
  36. int nHNumLines;
  37. int nVNumLines;
  38. int xChar, yChar;
  39. void SetupScrollbars();
  40. // Generated message map functions
  41. protected:
  42. //{{AFX_MSG(CCoolsb_mfctestView)
  43. afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  44. afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  45. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  46. afx_msg void OnSize(UINT nType, int cx, int cy);
  47. afx_msg void OnPaint();
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. };
  51. #ifndef _DEBUG // debug version in coolsb_mfctestView.cpp
  52. inline CCoolsb_mfctestDoc* CCoolsb_mfctestView::GetDocument()
  53. { return (CCoolsb_mfctestDoc*)m_pDocument; }
  54. #endif
  55. /////////////////////////////////////////////////////////////////////////////
  56. //{{AFX_INSERT_LOCATION}}
  57. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  58. #endif // !defined(AFX_COOLSB_MFCTESTVIEW_H__9540A896_BAEB_47BA_92D0_949362F82F5F__INCLUDED_)