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 / dwarryvw.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  2KB  |  74 lines

  1. // dwarryvw.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. // CDWordArrayView form view
  15.  
  16. #ifndef __AFXEXT_H__
  17. #include <afxext.h>
  18. #endif
  19.  
  20. class CDWordArrayView : public CFormView
  21. {
  22. public:
  23.     CDWordArrayView();           // protected constructor used by dynamic creation
  24.     DECLARE_DYNCREATE(CDWordArrayView)
  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(CDWordArrayView)
  37.     enum { IDD = IDD_DWORD_ARRAY };
  38.     CListBox    m_ctlList;
  39.     DWORD   m_dw;
  40.     //}}AFX_DATA
  41.  
  42. // Overrides
  43.     // ClassWizard generate virtual function overrides
  44.     //{{AFX_VIRTUAL(CDWordArrayView)
  45.     protected:
  46.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  47.     //}}AFX_VIRTUAL
  48.  
  49. // Implementation
  50. protected:
  51.     virtual ~CDWordArrayView();
  52. #ifdef _DEBUG
  53.     virtual void AssertValid() const;
  54.     virtual void Dump(CDumpContext& dc) const;
  55. #endif
  56.  
  57.     // Generated message map functions
  58.     //{{AFX_MSG(CDWordArrayView)
  59.     afx_msg void OnAdd();
  60.     afx_msg void OnUpdate();
  61.     afx_msg void OnRemove();
  62.     afx_msg void OnRemoveAll();
  63.     afx_msg void OnSelChangeList();
  64.     //}}AFX_MSG
  65.     DECLARE_MESSAGE_MAP()
  66. };
  67.  
  68. #ifndef _DEBUG
  69. inline CCollectDoc* CDWordArrayView::GetDocument()
  70.    { return (CCollectDoc*)m_pDocument; }
  71. #endif
  72.  
  73. /////////////////////////////////////////////////////////////////////////////
  74.