2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
7 #include "intuition_intern.h"
9 /*****************************************************************************
12 #include <proto/intuition.h>
14 AROS_LH2(BOOL
, ResetMenuStrip
,
17 AROS_LHA(struct Window
*, window
, A0
),
18 AROS_LHA(struct Menu
*, menu
, A1
),
21 struct IntuitionBase
*, IntuitionBase
, 117, Intuition
)
24 Works like a "fast" SetMenuStrip() as it doesn't check Menu or
25 calculate internal values before attaching the Menu to the Window.
26 Use this function only if the Menu has been added before by
27 SetMenuStrip() and you changed nothing in the struct except
28 CHECKED and ITEMENABLED flags.
31 window - The window to add the MenuStrip to
32 menu - The menu to be added to the window above.
38 Yes, I do repeat it again:
39 Use this function only if the Menu has been added before by
40 SetMenuStrip() and you changed nothing in the struct except
41 CHECKED and ITEMENABLED flags.
48 SetMenuStrip(), ClearMenuStrip()
54 *****************************************************************************/
58 SANITY_CHECKR(window
,TRUE
)
60 ObtainSemaphore(&GetPrivIBase(IntuitionBase
)->MenuLock
);
61 window
->MenuStrip
= menu
;
62 ReleaseSemaphore(&GetPrivIBase(IntuitionBase
)->MenuLock
);
67 } /* ResetMenuStrip */