Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.5 KiB

  1. // colldlg.h : header file
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. // CCollectionDialog dialog
  5. class CCollectionDialog : public CDialog
  6. {
  7. // Construction
  8. public:
  9. CCollectionDialog(CWnd* pParent = NULL); // standard constructor
  10. ~CCollectionDialog( ); // standard destructor
  11. // Dialog Data
  12. //{{AFX_DATA(CCollectionDialog)
  13. enum { IDD = IDD_COLLECTION };
  14. CStatic m_strParent;
  15. CStatic m_strItemType;
  16. CStatic m_strItemOleDsPath;
  17. CListBox m_ItemsList;
  18. //}}AFX_DATA
  19. // Overrides
  20. // ClassWizard generated virtual function overrides
  21. //{{AFX_VIRTUAL(CCollectionDialog)
  22. protected:
  23. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  24. //}}AFX_VIRTUAL
  25. // Implementation
  26. protected:
  27. // Generated message map functions
  28. //{{AFX_MSG(CCollectionDialog)
  29. virtual BOOL OnInitDialog();
  30. afx_msg void OnSelchangeItemCollection();
  31. afx_msg void OnAdd();
  32. afx_msg void OnRefresh();
  33. afx_msg void OnRemove();
  34. //}}AFX_MSG
  35. DECLARE_MESSAGE_MAP()
  36. public:
  37. void SetCollectionInterface ( IADsCollection* );
  38. void SetMembersInterface ( IADsMembers* );
  39. void SetGroup ( IADsGroup* );
  40. void DisplayActiveItemData ( void );
  41. void BuildStrings ( void );
  42. protected:
  43. IADsCollection* m_pCollection;
  44. IADsMembers* m_pMembers;
  45. IADsGroup* m_pGroup;
  46. CStringArray m_Paths;
  47. CStringArray m_Types;
  48. CStringArray m_Names;
  49. int m_nSelectedItem;
  50. };