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.

86 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1994-1999 Microsoft Corporation
  3. Module Name :
  4. dirbrows.h
  5. Abstract:
  6. Directory Browser Dialog definitions
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. #ifndef _DIRBROWS_H
  14. #define _DIRBROWS_H
  15. #ifndef _SHLOBJ_H_
  16. #include <shlobj.h>
  17. #endif // _SHLOBJ_H_
  18. class COMDLL CDirBrowseDlg
  19. /*++
  20. Class Description:
  21. Directory browsing dialog. Use the shell browser functionality to
  22. return a folder. Optionally allow conversion of remote paths to
  23. UNC paths.
  24. Public Interface:
  25. CDirBrowseDlg : Construct the dialog
  26. ~CDirBrowseDlg : Destruct the dialog
  27. GetFullPath : Get the full path selected
  28. --*/
  29. {
  30. //
  31. // Construction
  32. //
  33. public:
  34. //
  35. // standard constructor
  36. //
  37. CDirBrowseDlg(
  38. IN CWnd * pParent = NULL,
  39. IN LPCTSTR lpszInitialDir = NULL
  40. );
  41. ~CDirBrowseDlg();
  42. public:
  43. LPCTSTR GetFullPath(
  44. OUT CString & str,
  45. IN BOOL fConvertToUNC = TRUE
  46. ) const;
  47. virtual int DoModal();
  48. protected:
  49. TCHAR m_szBuffer[MAX_PATH + 1];
  50. CComBSTR m_bstrTitle;
  51. CString m_strInitialDir;
  52. BROWSEINFO m_bi;
  53. };
  54. #endif // _DIRBROWS_H