xref: /aosp_15_r20/external/lzma/CPP/7zip/UI/FileManager/MyLoadMenu.h (revision f6dc9357d832569d4d1f5d24eacdb3935a1ae8e6)
1 // MyLoadMenu.h
2 
3 #ifndef ZIP7_INC_MY_LOAD_MENU_H
4 #define ZIP7_INC_MY_LOAD_MENU_H
5 
6 void OnMenuActivating(HWND hWnd, HMENU hMenu, int position);
7 // void OnMenuUnActivating(HWND hWnd, HMENU hMenu, int id);
8 // void OnMenuUnActivating(HWND hWnd);
9 
10 bool OnMenuCommand(HWND hWnd, unsigned id);
11 void MyLoadMenu(bool needResetMenu);
12 
13 struct CFileMenu
14 {
15   bool programMenu;
16   bool readOnly;
17   bool isHashFolder;
18   bool isFsFolder;
19   bool allAreFiles;
20   bool isAltStreamsSupported;
21   unsigned numItems;
22 
23   FString FilePath;
24 
CFileMenuCFileMenu25   CFileMenu():
26       programMenu(false),
27       readOnly(false),
28       isHashFolder(false),
29       isFsFolder(false),
30       allAreFiles(false),
31       isAltStreamsSupported(true),
32       numItems(0)
33     {}
34 
35   void Load(HMENU hMenu, unsigned startPos);
36 };
37 
38 bool ExecuteFileCommand(unsigned id);
39 
40 #endif
41