Files
firestorm/Gameleap/code/mw4/Libraries/3dsmax2/include/RTCLICK.H
T
Cyd 2b8ca921cb Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS
Complete disaster-recovery snapshot: engine/game source, game data assets,
VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive.
Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false,
no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
2026-06-24 21:28:16 -05:00

56 lines
1.4 KiB
C++

/*********************************************************************
*<
FILE: rtclick.h
DESCRIPTION: Right-click menu functionality
CREATED BY: Tom Hudson
HISTORY: Created 14 June 1995
*> Copyright (c) 1995, All Rights Reserved.
**********************************************************************/
#ifndef __RTCLICK__
#define __RTCLICK__
class RightClickMenuManager;
class RightClickMenu {
public:
virtual void Init(RightClickMenuManager* manager, HWND hWnd, IPoint2 m)=0;
virtual void Selected(UINT id)=0;
};
typedef RightClickMenu* PRightClickMenu;
typedef Tab<PRightClickMenu> PRightClickMenuTab;
class RCMData {
public:
RightClickMenu *menu;
UINT menuId;
UINT managerId;
RCMData() { menu = NULL; menuId = managerId = 0; };
RCMData(RightClickMenu *menu, UINT menuId, UINT managerID);
};
typedef Tab<RCMData> RCMDataTab;
class RightClickMenuManager {
private:
HMENU theMenu;
PRightClickMenuTab menuTab;
RCMDataTab dataTab;
int index;
int limit;
int startId;
public:
CoreExport void Register(RightClickMenu *menu);
CoreExport void Unregister(RightClickMenu *menu);
CoreExport void Init(HMENU menu, int startId, int limit, HWND hWnd, IPoint2 m);
CoreExport int AddMenu(RightClickMenu *menu, UINT flags, UINT id, LPCTSTR data);
CoreExport void Process(UINT id);
};
#endif // __RTCLICK__