home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Snippets / Background ppat 1.0.2 / src / main.h < prev   
Encoding:
C/C++ Source or Header  |  1995-12-15  |  1.4 KB  |  60 lines  |  [TEXT/CWIE]

  1. /* ----------------------------------------------------------------------
  2. defines
  3. ---------------------------------------------------------------------- */
  4. #define    NIL                    0L
  5. #define STD_BUTTON            0
  6.  
  7. #define MENU_BASE_ID        100
  8.  
  9. #define    MENU_APPLE_ID        100
  10. #define    MENU_FILE_ID        200
  11.  
  12. #define    APPLE_ABOUT            1
  13.  
  14. #define    FILE_QUIT            1
  15.  
  16. #define DLOG_ABOUT            100
  17. #define DLOG_ABOUT_OK        1
  18. #define DLOG_ABOUT_PICT        2
  19.  
  20. #define SYSTEM_PPAT            16
  21.  
  22. #define    WNE_TRAP_NUM        0x60
  23. #define    UNIMPL_TRAP_NUM        0x9F
  24. #define    SUSPEND_RESUME_BIT    0x0001
  25. #define    RESUMING            1
  26. #define    MIN_SLEEP            60L
  27.  
  28. /* ----------------------------------------------------------------------
  29. globals
  30. ---------------------------------------------------------------------- */
  31. extern Boolean                gDone,
  32.                             gWNEImplemented,
  33.                             gInBackground;
  34. extern EventRecord            gTheEvent;
  35. extern MenuHandle            gAppleMenu,
  36.                             gFileMenu,
  37.                             gEditMenu;
  38. extern WindowPtr            gTheWindow;
  39. extern PixPatHandle            gPixPat;
  40. extern ProcessSerialNumber    gMailApp,
  41.                             gNewsApp,
  42.                             gFTPApp,
  43.                             gWebApp,
  44.                             gTelnetApp;
  45.  
  46.  
  47. /* ----------------------------------------------------------------------
  48. prototypes
  49. ---------------------------------------------------------------------- */
  50.  
  51. /* main.c */
  52. extern void main();
  53. extern void InitToolBox();
  54. extern void InitMenuBar();
  55. extern void MainLoop();
  56. extern void Do();
  57. extern void DoUpdate();
  58. extern void DoMouseDown();
  59. extern void DoMenu(long int menuChoice);
  60.