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

  1. // strcoll.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. // CStringCollect command target
  15.  
  16. class CStringCollect : public CCmdTarget
  17. {
  18.     DECLARE_DYNCREATE(CStringCollect)
  19. protected:
  20.     CStringCollect();           // protected constructor used by dynamic creation
  21.  
  22. // Attributes
  23. public:
  24.     CStringArray m_strArray;
  25.  
  26. // Operations
  27. public:
  28.     void CheckIndex(long nIndex);
  29.  
  30. // Overrides
  31.     // ClassWizard generated virtual function overrides
  32.     //{{AFX_VIRTUAL(CStringCollect)
  33.     public:
  34.     virtual void OnFinalRelease();
  35.     //}}AFX_VIRTUAL
  36.  
  37. // Implementation
  38. protected:
  39.     virtual ~CStringCollect();
  40.  
  41.     // Generated message map functions
  42.     //{{AFX_MSG(CStringCollect)
  43.         // NOTE - the ClassWizard will add and remove member functions here.
  44.     //}}AFX_MSG
  45.  
  46.     DECLARE_MESSAGE_MAP()
  47.     DECLARE_OLECREATE(CStringCollect)
  48.  
  49.     // Generated OLE dispatch map functions
  50.     //{{AFX_DISPATCH(CStringCollect)
  51.     afx_msg long GetCount();
  52.     afx_msg long Add(LPCTSTR newValue);
  53.     afx_msg long Find(LPCTSTR findValue);
  54.     afx_msg long Remove(const VARIANT FAR& removeValue);
  55.     afx_msg void RemoveAll();
  56.     afx_msg BSTR GetItem(long nIndex);
  57.     afx_msg void SetItem(long nIndex, LPCTSTR lpszNewValue);
  58.     //}}AFX_DISPATCH
  59.     afx_msg LPUNKNOWN GetNewEnum();
  60.  
  61.     DECLARE_DISPATCH_MAP()
  62.  
  63.     DECLARE_INTERFACE_MAP()
  64. };
  65.  
  66. /////////////////////////////////////////////////////////////////////////////
  67.