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.

68 lines
2.3 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. #include "resource.h"
  9. //#import "\bin\NetEnum.tlb" no_namespace
  10. #import "NetEnum.tlb" no_namespace
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CContainerSelectionDlg dialog
  13. class CContainerSelectionDlg : public CDialog
  14. {
  15. // Construction
  16. public:
  17. HRESULT FindContainer();
  18. CImageList ilist;
  19. BOOL LoadImageList();
  20. HRESULT ExpandCompletely(HTREEITEM tvItem, _bstr_t parentCont);
  21. HRESULT PopulateContainer(HTREEITEM tvItemParent,_bstr_t sContName, INetObjEnumeratorPtr pQuery);
  22. CString m_strDomain;
  23. CContainerSelectionDlg(CWnd* pParent = NULL); // standard constructor
  24. COLORREF GetFirstBitmapPixel(CWnd * window,UINT idbBitmap);
  25. HTREEITEM OpenContainer(CString strCont, HTREEITEM root);
  26. // Dialog Data
  27. //{{AFX_DATA(CContainerSelectionDlg)
  28. enum { IDD = IDD_CONT_SELECTION };
  29. CButton m_btnOK;
  30. CTreeCtrl m_trOUTree;
  31. CString m_strCont;
  32. //}}AFX_DATA
  33. BSTR domain;
  34. HRESULT BrowseForContainer(HWND hWnd,//Handle to window that should own the browse dialog.
  35. LPOLESTR szRootPath, //Root of the browse tree. NULL for entire forest.
  36. LPOLESTR *ppContainerADsPath, //Return the ADsPath of the selected container.
  37. LPOLESTR *ppContainerClass //Return the ldapDisplayName of the container's class.
  38. );
  39. // Overrides
  40. // ClassWizard generated virtual function overrides
  41. //{{AFX_VIRTUAL(CContainerSelectionDlg)
  42. protected:
  43. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  44. //}}AFX_VIRTUAL
  45. // Implementation
  46. protected:
  47. // Generated message map functions
  48. //{{AFX_MSG(CContainerSelectionDlg)
  49. afx_msg void OnOk();
  50. virtual BOOL OnInitDialog();
  51. afx_msg void OnSelchangedTree1(NMHDR* pNMHDR, LRESULT* pResult);
  52. afx_msg void OnDblclkTree1(NMHDR* pNMHDR, LRESULT* pResult);
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. };
  56. //{{AFX_INSERT_LOCATION}}
  57. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  58. #endif // !defined(AFX_CONTAINERSELECTIONDLG_H__D8C6E4B2_0256_48FA_8B27_8B3EE88AC24E__INCLUDED_)