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