home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / macintosh-c / macc-carbon-demos-nonbinhex.sit / macc-carbon-demos-nonbinhex / chap11-demo / PreQuickDraw.c.rsrc / TEXT_19938.txt < prev   
Text File  |  2001-07-09  |  1KB  |  15 lines

  1. // *******************************************************************************************
  2. // PreQuickDraw.c                                        CARBONIZED.  USES CLASSIC EVENT MODEL
  3. // *******************************************************************************************
  4. // 
  5. // This program opens a window in which is displayed some information retrieved from the
  6. // GDevice structure for the main video device, from the colour graphics port's pixel map, and
  7. // from the colour graphics port object using QuickDraw functions.  When the monitor is set to
  8. // 256 colours or less, the colours in the colour table are also displayed.
  9. //
  10. // A Demonstration menu, which is enabled if the monitor is a direct device set to 256 colours
  11. // or less at program start, allows the user to set the monitor to 16-bit colour and to 
  12. // restore the original pixel depth. 
  13. //
  14. // The program utilises 'carb', 'MBAR', 'MENU', 'WIND', and 'STR#' resources, and a 'SIZE'
  15. // resource with the acceptSuspendResumeEvents, canBackground