Leaked source code of windows server 2003
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. //=======================================================================
  2. //
  3. // Copyright (c) 1998 Microsoft Corporation. All Rights Reserved.
  4. //
  5. // File: Browse.h
  6. //
  7. // Owner: EdDude
  8. //
  9. // Description:
  10. //
  11. // Implements the CBrowseFolder class.
  12. //
  13. // Browse for a Folder for downloads.
  14. //
  15. // ======================================================================
  16. //
  17. // History:
  18. //
  19. // Date Who What
  20. // ---- --- ---------------------------------------
  21. // 01/18/01 charlma copy to IU control project, and modify
  22. //
  23. //=======================================================================
  24. #ifndef _BROWSE_H_
  25. #define _BROWSE_H_
  26. //----------------------------------------------------------------------
  27. // CBrowseFolder
  28. //
  29. // Browse for a Folder for downloads.
  30. //----------------------------------------------------------------------
  31. class CBrowseFolder
  32. {
  33. public:
  34. CBrowseFolder(LONG lFlag);
  35. ~CBrowseFolder();
  36. HRESULT BrowseFolder(HWND hwParent, LPCTSTR lpszDefaultPath,
  37. LPTSTR szPathSelected, DWORD cchPathSelected);
  38. private:
  39. CBrowseFolder() {}; // disable default constructor
  40. static bool s_bBrowsing;
  41. static int CALLBACK _BrowseCallbackProc( HWND hwDlg, UINT uMsg, LPARAM lParam, LPARAM lpData );
  42. HWND m_hwParent;
  43. BOOL m_fValidateWrite;
  44. BOOL m_fValidateUI; // FALSE if OK button not affected, TRUE if need to disable UI if validation fail
  45. TCHAR m_szFolder[MAX_PATH];
  46. };
  47. #endif // _BROWSE_H_