View.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. // View.h : interface of the CMDIView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #ifndef VIEW_H
  5. #define VIEW_H
  6. #include "XListCtrl.h"
  7. class CMDIDoc;
  8. class CMDIView : public CView
  9. {
  10. protected: // create from serialization only
  11. CMDIView();
  12. DECLARE_DYNCREATE(CMDIView)
  13. // Attributes
  14. public:
  15. CMDIDoc* GetDocument();
  16. CXListCtrl * m_pList;
  17. CStringArray m_sa1, m_sa2;
  18. static int m_nColWidths[];
  19. // Operations
  20. public:
  21. void FillListCtrl(CXListCtrl * pList);
  22. void InitListCtrl(CXListCtrl * pList);
  23. // Overrides
  24. // ClassWizard generated virtual function overrides
  25. //{{AFX_VIRTUAL(CMDIView)
  26. public:
  27. virtual void OnDraw(CDC* pDC); // overridden to draw this view
  28. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  29. virtual void OnInitialUpdate();
  30. protected:
  31. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  32. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  33. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  34. //}}AFX_VIRTUAL
  35. // Implementation
  36. public:
  37. virtual ~CMDIView();
  38. #ifdef _DEBUG
  39. virtual void AssertValid() const;
  40. virtual void Dump(CDumpContext& dc) const;
  41. #endif
  42. protected:
  43. // Generated message map functions
  44. protected:
  45. //{{AFX_MSG(CMDIView)
  46. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  47. afx_msg void OnSize(UINT nType, int cx, int cy);
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. };
  51. #ifndef _DEBUG // debug version in View.cpp
  52. inline CMDIDoc* CMDIView::GetDocument()
  53. { return (CMDIDoc*)m_pDocument; }
  54. #endif
  55. /////////////////////////////////////////////////////////////////////////////
  56. //{{AFX_INSERT_LOCATION}}
  57. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  58. #endif //VIEW_H