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

#if !defined(AFX_CONTAINERSELECTIONDLG_H__D8C6E4B2_0256_48FA_8B27_8B3EE88AC24E__INCLUDED_)
#define AFX_CONTAINERSELECTIONDLG_H__D8C6E4B2_0256_48FA_8B27_8B3EE88AC24E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ContainerSelectionDlg.h : header file
//
#include "resource.h"
//#import "\bin\NetEnum.tlb" no_namespace
#import "NetEnum.tlb" no_namespace
/////////////////////////////////////////////////////////////////////////////
// CContainerSelectionDlg dialog
class CContainerSelectionDlg : public CDialog
{
// Construction
public:
HRESULT FindContainer();
CImageList ilist;
BOOL LoadImageList();
HRESULT ExpandCompletely(HTREEITEM tvItem, _bstr_t parentCont);
HRESULT PopulateContainer(HTREEITEM tvItemParent,_bstr_t sContName, INetObjEnumeratorPtr pQuery);
CString m_strDomain;
CContainerSelectionDlg(CWnd* pParent = NULL); // standard constructor
COLORREF GetFirstBitmapPixel(CWnd * window,UINT idbBitmap);
HTREEITEM OpenContainer(CString strCont, HTREEITEM root);
// Dialog Data
//{{AFX_DATA(CContainerSelectionDlg)
enum { IDD = IDD_CONT_SELECTION };
CButton m_btnOK;
CTreeCtrl m_trOUTree;
CString m_strCont;
//}}AFX_DATA
BSTR domain;
HRESULT BrowseForContainer(HWND hWnd,//Handle to window that should own the browse dialog.
LPOLESTR szRootPath, //Root of the browse tree. NULL for entire forest.
LPOLESTR *ppContainerADsPath, //Return the ADsPath of the selected container.
LPOLESTR *ppContainerClass //Return the ldapDisplayName of the container's class.
);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CContainerSelectionDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CContainerSelectionDlg)
afx_msg void OnOk();
virtual BOOL OnInitDialog();
afx_msg void OnSelchangedTree1(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnDblclkTree1(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CONTAINERSELECTIONDLG_H__D8C6E4B2_0256_48FA_8B27_8B3EE88AC24E__INCLUDED_)