5 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
6 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
9 Message structure the MenuHandler gets from Intuition.
20 #define MMCODE_START 1
21 #define MMCODE_EVENT 2
22 #define MMCODE_STARTCLOCK 4
24 #define MENUS_ACTIVE (GetPrivIBase(IntuitionBase)->MenusActive)
26 #define IECLASS_MENU IECLASS_EVENT
27 #define IESUBCLASS_MENUSTOP 21
29 struct MenuMessage
*AllocMenuMessage(struct IntuitionBase
*IntuitionBase
);
30 void FreeMenuMessage(struct MenuMessage
*msg
, struct IntuitionBase
*IntuitionBase
);
31 void SendMenuMessage(struct MenuMessage
*msg
, struct IntuitionBase
*IntuitionBase
);
32 struct MenuMessage
*GetMenuMessage(struct MsgPort
*port
, struct IntuitionBase
*IntuitionBase
);
33 void ReplyMenuMessage(struct MenuMessage
*msg
, struct IntuitionBase
*IntuitionBase
);
35 void MH2Int_MakeMenusInactive(struct Window
*win
, UWORD menupick
, struct IntuitionBase
*IntuitionBase
);
37 void GetMenuBox(struct Window
*win
, struct MenuItem
*item
,
38 WORD
*xmin
, WORD
*ymin
, WORD
*xmax
, WORD
*ymax
);
40 UWORD
FindMenuShortCut(struct Menu
*menu
, UBYTE key
, BOOL do_click_op
,
41 struct IntuitionBase
*IntuitionBase
);
42 void CheckMenuItemWasClicked(struct MenuItem
*item
, UWORD itemnum
, struct MenuItem
*parentitem
);