home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / collect / intlstvw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  2.1 KB  |  89 lines

  1. // intlstvw.h : header file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1999 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. // CIntListView form view
  15.  
  16. #ifndef __AFXEXT_H__
  17. #include <afxext.h>
  18. #endif
  19.  
  20. class CIntListView : public CFormView
  21. {
  22. public:
  23.     CIntListView();           // protected constructor used by dynamic creation
  24.     DECLARE_DYNCREATE(CIntListView)
  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(CIntListView)
  37. #if defined(_WIN32_WCE_PSPC)
  38.     enum { IDD = IDD_INT_LIST_PSPC };
  39. #else
  40.     enum { IDD = IDD_INT_LIST };
  41. #endif    
  42.     CListBox    m_ctlList;
  43.     int     m_int;
  44.     //}}AFX_DATA
  45.  
  46. // Attributes
  47. public:
  48.  
  49. // Operations
  50. public:
  51.  
  52. // Overrides
  53.     // ClassWizard generate virtual function overrides
  54.     //{{AFX_VIRTUAL(CIntListView)
  55.     protected:
  56.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  57.     //}}AFX_VIRTUAL
  58.  
  59.  
  60. // Implementation
  61. protected:
  62.     BOOL FindInt(int& nSel, POSITION& pos);
  63.     void AddIntToListBox(int n, int nSel = -1);
  64.  
  65.     virtual ~CIntListView();
  66. #ifdef _DEBUG
  67.     virtual void AssertValid() const;
  68.     virtual void Dump(CDumpContext& dc) const;
  69. #endif
  70.  
  71.     // Generated message map functions
  72.     //{{AFX_MSG(CIntListView)
  73.     afx_msg void OnAdd();
  74.     afx_msg void OnUpdate();
  75.     afx_msg void OnRemove();
  76.     afx_msg void OnRemoveAll();
  77.     afx_msg void OnSelChangeList();
  78.     afx_msg void OnInsertBefore();
  79.     //}}AFX_MSG
  80.     DECLARE_MESSAGE_MAP()
  81. };
  82.  
  83. #ifndef _DEBUG
  84. inline CCollectDoc* CIntListView::GetDocument()
  85.    { return (CCollectDoc*)m_pDocument; }
  86. #endif
  87.  
  88. /////////////////////////////////////////////////////////////////////////////
  89.