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.

65 lines
2.6 KiB

  1. //--------------------------------------------------------------------------
  2. // Newfldr.h
  3. //--------------------------------------------------------------------------
  4. #ifndef __NEWFLDR_H
  5. #define __NEWFLDR_H
  6. //--------------------------------------------------------------------------
  7. // Depends
  8. //--------------------------------------------------------------------------
  9. #include "treeview.h"
  10. //--------------------------------------------------------------------------
  11. // Control Ids
  12. //--------------------------------------------------------------------------
  13. #define idcFolderEdit 1000
  14. #define idcTreeView 1001
  15. #define idcTreeViewText 1002
  16. #define idcNewFolderBtn 1003
  17. //--------------------------------------------------------------------------
  18. // Folder Dialog flags (Can be combined with TREEVIEW_xxx Flags
  19. //--------------------------------------------------------------------------
  20. typedef DWORD FOLDERDIALOGFLAGS;
  21. #define FD_NONEWFOLDERS 0x0100
  22. #define FD_DISABLEROOT 0x0200
  23. #define FD_DISABLEINBOX 0x0400
  24. #define FD_DISABLEOUTBOX 0x0800
  25. #define FD_DISABLESENTITEMS 0x1000
  26. #define FD_DISABLESERVERS 0x2000
  27. #define FD_FORCEINITSELFOLDER 0x4000
  28. //--------------------------------------------------------------------------
  29. // Common Folder Dialog flags Combos
  30. //--------------------------------------------------------------------------
  31. #define FD_COPYFLAGS (FD_DISABLEROOT | FD_DISABLEOUTBOX)
  32. #define FD_MOVEFLAGS (FD_DISABLEROOT | FD_DISABLEOUTBOX)
  33. #define FD_DISABLEFLAGS (FD_DISABLEROOT | FD_DISABLEINBOX | FD_DISABLEOUTBOX | FD_DISABLESENTITEMS | FD_DISABLESERVERS)
  34. #define FD_DISABLEFOLDERS (FD_DISABLEINBOX | FD_DISABLEOUTBOX | FD_DISABLESENTITEMS)
  35. //--------------------------------------------------------------------------
  36. // Select Folder Dialog operations
  37. //--------------------------------------------------------------------------
  38. enum
  39. {
  40. SFD_SELECTFOLDER = 0,
  41. SFD_NEWFOLDER,
  42. SFD_MOVEFOLDER,
  43. // SFD_MOVEMESSAGES,
  44. // SFD_COPYMESSAGES,
  45. SFD_LAST
  46. };
  47. //--------------------------------------------------------------------------
  48. // Prototypes
  49. //--------------------------------------------------------------------------
  50. HRESULT SelectFolderDialog(
  51. IN HWND hwnd,
  52. IN DWORD op,
  53. IN FOLDERID idCurrent,
  54. IN FOLDERDIALOGFLAGS dwFlags,
  55. IN_OPT LPCSTR pszTitle,
  56. IN_OPT LPCSTR pszText,
  57. OUT_OPT LPFOLDERID pidSelected);
  58. #endif // _INC_NEWFLDR_H