home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Frameworks / PennyWise™ Framework / PennyWise Application Framework / InitApplication.c < prev    next >
Encoding:
Text File  |  1994-08-08  |  1.3 KB  |  52 lines  |  [TEXT/KAHL]

  1. //••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  2. //                                                                                //
  3. //                                                                                //
  4. //                    Copyright PennyWise Software, 1994.                            //
  5. //                                                                                //
  6. //            Part of the PennyWise Software Application Framework                //
  7. //                                                                                //
  8. //                                                                                //
  9. //            InitApplication.c        Written by Peter Kaplan                        //
  10. //                                                                                //
  11. //                                                                                //
  12. //••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  13. // Local Includes
  14. #include "CoreAppleEvents.h"
  15. #include "DefaultHandlers.h"
  16. #include "HandleMenus.h"
  17. #include "InitApplication.h"
  18. //••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  19. void InitApplication()
  20. {
  21. Rect    boundsRect;
  22.  
  23.     // Set up the menus
  24.     InitOurMenus();
  25.     
  26.     // Set up the AppleEvents
  27.     InitOurAppleEvents();
  28.     
  29.     // Set up the default handlers
  30.     InitDefaultHandlers();
  31.  
  32.     // Here is where you will add the handlers
  33.     
  34. }
  35. //••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  36. void InitOurMenus()
  37. {
  38.     ClearMenuBar();
  39.  
  40.     gMenuApple = GetMenu(kMENU_ID_APPLE);                          
  41.     InsertMenu (gMenuApple,0);
  42.     AddResMenu(gMenuApple,'DRVR');
  43.     
  44.     gMenuFile = GetMenu(kMENU_ID_FILE);
  45.     InsertMenu (gMenuFile,0);
  46.  
  47.     gMenuEdit = GetMenu(kMENU_ID_EDIT);
  48.     InsertMenu (gMenuEdit,0);
  49.  
  50.     DrawMenuBar();
  51. }
  52.