home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / advanced / collect / ptarryvw.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  2KB  |  79 lines

  1. // ptarryvw.h : header file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CPointArrayView form view
  15.  
  16. #ifndef __AFXEXT_H__
  17. #include <afxext.h>
  18. #endif
  19.  
  20. class CPointArrayView : public CFormView
  21. {
  22. public:
  23.     CPointArrayView();           // protected constructor used by dynamic creation
  24.     DECLARE_DYNCREATE(CPointArrayView)
  25.  
  26. // Attributes
  27. public:
  28.     CCollectDoc* GetDocument();
  29.  
  30. // Overrides
  31. public:
  32.     void OnInitialUpdate();
  33.  
  34. // Form Data
  35. public:
  36.     //{{AFX_DATA(CPointArrayView)
  37.     enum { IDD = IDD_POINT_ARRAY };
  38.     CListBox    m_ctlList;
  39.     int     m_x;
  40.     int     m_y;
  41.     //}}AFX_DATA
  42.  
  43. // Implementation
  44. protected:
  45.     void AddPointToListBox(CPoint pt, int nSel = -1);
  46.  
  47. // Overrides
  48.     // ClassWizard generate virtual function overrides
  49.     //{{AFX_VIRTUAL(CPointArrayView)
  50.     protected:
  51.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  52.     //}}AFX_VIRTUAL
  53.  
  54. // Implementation
  55. protected:
  56.     virtual ~CPointArrayView();
  57. #ifdef _DEBUG
  58.     virtual void AssertValid() const;
  59.     virtual void Dump(CDumpContext& dc) const;
  60. #endif
  61.  
  62.     // Generated message map functions
  63.     //{{AFX_MSG(CPointArrayView)
  64.     afx_msg void OnAdd();
  65.     afx_msg void OnUpdate();
  66.     afx_msg void OnRemove();
  67.     afx_msg void OnRemoveAll();
  68.     afx_msg void OnSelChangeList();
  69.     //}}AFX_MSG
  70.     DECLARE_MESSAGE_MAP()
  71. };
  72.  
  73. #ifndef _DEBUG
  74. inline CCollectDoc* CPointArrayView::GetDocument()
  75.    { return (CCollectDoc*)m_pDocument; }
  76. #endif
  77.  
  78. /////////////////////////////////////////////////////////////////////////////
  79.