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.

45 lines
2.5 KiB

  1. #ifndef _FSMENU_H
  2. #define _FSMENU_H
  3. //---------------------------------------------------------------------------
  4. //
  5. //---------------------------------------------------------------------------
  6. typedef enum
  7. {
  8. FMF_NONE = 0x0000,
  9. FMF_NOEMPTYITEM = 0x0001,
  10. FMF_INCLUDEFOLDERS = 0x0002,
  11. FMF_NOPROGRAMS = 0x0004,
  12. FMF_FILESMASK = 0x0007,
  13. FMF_LARGEICONS = 0x0008,
  14. FMF_NOBREAK = 0x0010,
  15. FMF_NOABORT = 0x0020,
  16. } FMFLAGS;
  17. #define FMAI_SEPARATOR 0x00000001
  18. typedef void (CALLBACK *PFNFMCALLBACK)(LPITEMIDLIST, LPITEMIDLIST);
  19. WINSHELLAPI UINT WINAPI FileMenu_ReplaceUsingPidl(HMENU hmenu, UINT idNewItems, LPITEMIDLIST pidl, UINT fMenuFilter, PFNFMCALLBACK pfncb);
  20. WINSHELLAPI BOOL WINAPI FileMenu_InitMenuPopup(HMENU hmenu);
  21. WINSHELLAPI LRESULT WINAPI FileMenu_DrawItem(HWND hwnd, DRAWITEMSTRUCT FAR *lpdi);
  22. WINSHELLAPI LRESULT WINAPI FileMenu_MeasureItem(HWND hwnd, MEASUREITEMSTRUCT FAR *lpmi);
  23. WINSHELLAPI UINT WINAPI FileMenu_DeleteAllItems(HMENU hmenu);
  24. WINSHELLAPI LRESULT WINAPI FileMenu_HandleMenuChar(HMENU hmenu, char ch);
  25. WINSHELLAPI BOOL WINAPI FileMenu_GetLastSelectedItemPidls(HMENU hmenu, LPITEMIDLIST *ppidlFolder, LPITEMIDLIST *ppidlItem);
  26. WINSHELLAPI HMENU WINAPI FileMenu_FindSubMenuByPidl(HMENU hmenu, LPITEMIDLIST pidl);
  27. WINSHELLAPI UINT WINAPI FileMenu_InsertUsingPidl(HMENU hmenu, UINT idNewItems, LPITEMIDLIST pidl, FMFLAGS fmf, UINT fMenuFilter, PFNFMCALLBACK pfncb);
  28. WINSHELLAPI void WINAPI FileMenu_Invalidate(HMENU hmenu);
  29. WINSHELLAPI HMENU WINAPI FileMenu_Create(COLORREF clr, int cxBmpGap, HBITMAP hbmp, int cySel, FMFLAGS fmf);
  30. WINSHELLAPI BOOL WINAPI FileMenu_AppendItem(HMENU hmenu, LPSTR psz, UINT id, int iImage, HMENU hmenuSub, UINT cyItem);
  31. WINSHELLAPI BOOL WINAPI FileMenu_TrackPopupMenuEx(HMENU hmenu, UINT Flags, int x, int y, HWND hwndOwner, LPTPMPARAMS lpTpm);
  32. WINSHELLAPI BOOL WINAPI FileMenu_DeleteItemByCmd(HMENU hmenu, UINT id);
  33. WINSHELLAPI void WINAPI FileMenu_Destroy(HMENU hmenu);
  34. WINSHELLAPI BOOL WINAPI FileMenu_EnableItemByCmd(HMENU hmenu, UINT id, BOOL fEnable);
  35. WINSHELLAPI BOOL WINAPI FileMenu_DeleteSeparator(HMENU hmenu);
  36. WINSHELLAPI BOOL WINAPI FileMenu_DeleteMenuItemByFirstID(HMENU hmenu, UINT id);
  37. WINSHELLAPI DWORD WINAPI FileMenu_GetItemExtent(HMENU hmenu, UINT iItem);
  38. WINSHELLAPI BOOL WINAPI FileMenu_DeleteItemByIndex(HMENU hmenu, UINT iItem);
  39. WINSHELLAPI void WINAPI FileMenu_AbortInitMenu(void);
  40. #endif //_FSMENU_H