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.

60 lines
1.8 KiB

  1. #if !defined(AFX_CONTAINERSELECTIONDLG_H__D8C6E4B2_0256_48FA_8B27_8B3EE88AC24E__INCLUDED_)
  2. #define AFX_CONTAINERSELECTIONDLG_H__D8C6E4B2_0256_48FA_8B27_8B3EE88AC24E__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ContainerSelectionDlg.h : header file
  7. //
  8. #import "\bin\NetEnum.tlb" no_namespace
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CContainerSelectionDlg dialog
  11. class CContainerSelectionDlg : public CDialog
  12. {
  13. // Construction
  14. public:
  15. HRESULT FindContainer();
  16. CImageList ilist;
  17. BOOL LoadImageList();
  18. HRESULT ExpandCompletely(HTREEITEM tvItem, BSTR parentCont);
  19. HRESULT PopulateContainer(HTREEITEM tvItemParent,BSTR sContName, INetObjEnumeratorPtr pQuery);
  20. CString m_strDomain;
  21. CContainerSelectionDlg(CWnd* pParent = NULL); // standard constructor
  22. COLORREF GetFirstBitmapPixel(CWnd * window,UINT idbBitmap);
  23. HTREEITEM OpenContainer(CString strCont, HTREEITEM root);
  24. // Dialog Data
  25. //{{AFX_DATA(CContainerSelectionDlg)
  26. enum { IDD = IDD_CONT_SELECTION };
  27. CButton m_btnOK;
  28. CTreeCtrl m_trOUTree;
  29. CString m_strCont;
  30. //}}AFX_DATA
  31. // Overrides
  32. // ClassWizard generated virtual function overrides
  33. //{{AFX_VIRTUAL(CContainerSelectionDlg)
  34. protected:
  35. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  36. //}}AFX_VIRTUAL
  37. // Implementation
  38. protected:
  39. // Generated message map functions
  40. //{{AFX_MSG(CContainerSelectionDlg)
  41. afx_msg void OnOk();
  42. virtual BOOL OnInitDialog();
  43. afx_msg void OnSelchangedTree1(NMHDR* pNMHDR, LRESULT* pResult);
  44. afx_msg void OnDblclkTree1(NMHDR* pNMHDR, LRESULT* pResult);
  45. //}}AFX_MSG
  46. DECLARE_MESSAGE_MAP()
  47. };
  48. //{{AFX_INSERT_LOCATION}}
  49. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  50. #endif // !defined(AFX_CONTAINERSELECTIONDLG_H__D8C6E4B2_0256_48FA_8B27_8B3EE88AC24E__INCLUDED_)