home *** CD-ROM | disk | FTP | other *** search
/ Packard Bell - Internet on a CD / internet on a cd.cdr / Internet / sites / Clementine_NASA / clemdsrc.hqx / macinit.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-24  |  1.4 KB  |  61 lines

  1. /***************************************************************
  2. * macinit subroutine - Written by Janet Barrett at USGS, Flagstaff
  3. *
  4. * program description
  5. *
  6. *    Initialize the Macintosh toolbox
  7. *
  8. ****************************************************************/
  9.  
  10. /********************
  11. * Standard C includes 
  12. *********************/
  13. #include <ctype.h>
  14. #include <stdio.h>
  15. #include <errno.h>
  16. #include <fcntl.h>
  17. #include <stdlib.h>
  18. #include <string.h>
  19.  
  20. /***************************
  21. * Macintosh toolbox includes 
  22. ****************************/
  23. #include <Packages.h>
  24.  
  25. void macinit ()
  26. {
  27. /*********************
  28. * Initialize QuickDraw 
  29. **********************/
  30.   InitGraf((Ptr) &qd.thePort);
  31.   
  32. /****************************
  33. * Initialize the Font Manager 
  34. *****************************/
  35.   InitFonts();
  36.   
  37. /******************************
  38. * Initialize the Window Manager 
  39. *******************************/
  40.   InitWindows();
  41.   
  42. /****************************
  43. * Initialize the Menu Manager 
  44. *****************************/
  45.   InitMenus();
  46.   
  47. /********************
  48. * Initialize TextEdit 
  49. *********************/
  50.   TEInit();
  51.   
  52. /******************************
  53. * Initialize the Dialog Manager
  54. *******************************/
  55.   InitDialogs(nil);
  56.   
  57. /*********************************************************
  58. * Set the cursor to the standard arrow and make it visible 
  59. **********************************************************/
  60.   InitCursor();
  61.  }