p7zip-rar/CPP/7zip/UI/FileManager/MyLoadMenu.h
2017-10-11 12:40:22 +02:00

40 lines
757 B
C++

// MyLoadMenu.h
#ifndef __MY_LOAD_MENU_H
#define __MY_LOAD_MENU_H
class myHMENU; // FIXME
typedef myHMENU * HMENU; // FIXME
void OnMenuActivating(HWND hWnd, HMENU hMenu, int position);
// void OnMenuUnActivating(HWND hWnd, HMENU hMenu, int id);
// void OnMenuUnActivating(HWND hWnd);
bool OnMenuCommand(HWND hWnd, int id);
void MyLoadMenu();
struct CFileMenu
{
bool programMenu;
bool readOnly;
bool isFsFolder;
bool allAreFiles;
bool isAltStreamsSupported;
int numItems;
CFileMenu():
programMenu(false),
readOnly(false),
isFsFolder(false),
allAreFiles(false),
isAltStreamsSupported(true),
numItems(0)
{}
void Load(HMENU hMenu, unsigned startPos);
};
bool ExecuteFileCommand(int id);
#endif