home *** CD-ROM | disk | FTP | other *** search
- /*****
- *
- * MenuApple.c
- *
- * This is a support file for "Grant's CGI Framework".
- * Please see the license agreement that accompanies the distribution package
- * for licensing details.
- *
- * Copyright ©1995,1996 by Grant Neufeld
- * grant@acm.com
- * http://arpp.carleton.ca/grant/
- *
- *****/
-
- #include "MyConfiguration.h"
- #if kCompileWithForeground
-
- #include "compiler_stuff.h"
- #include "globals.h"
-
- #include "AboutBox.h"
- #include "MenuFunc.h"
- #include "WindowInt.h"
-
- #include "MenuApple.h"
-
-
- /*** FUNCTIONS ***/
-
- void
- doAppleMenu ( short itemNumber, short modifiers )
- {
- Str255 itemName;
-
- if ( itemNumber == kmiAbout )
- {
- AboutBoxOpen ();
- }
- else
- {
- /* desk accessory or other Apple menu item */
- GetItem ( gmAppleMenu, itemNumber, itemName );
- OpenDeskAcc ( itemName );
- }
- } /* doAppleMenu */
-
-
- /* */
- void
- adjustAppleMenu ( window_type theWindowType )
- {
- EnableItem ( gmAppleMenu, kmiAbout );
- EnableItem ( gmAppleMenu, kmTheWholeMenu );
- } /* adjustAppleMenu */
-
-
- #endif /* kCompileWithForeground */
-
- /***** EOF *****/
-