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

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