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
Wrap
Text File
|
2001-07-09
|
1KB
|
15 lines
// *******************************************************************************************
// PreQuickDraw.c CARBONIZED. USES CLASSIC EVENT MODEL
// *******************************************************************************************
//
// This program opens a window in which is displayed some information retrieved from the
// GDevice structure for the main video device, from the colour graphics port's pixel map, and
// from the colour graphics port object using QuickDraw functions. When the monitor is set to
// 256 colours or less, the colours in the colour table are also displayed.
//
// A Demonstration menu, which is enabled if the monitor is a direct device set to 256 colours
// or less at program start, allows the user to set the monitor to 16-bit colour and to
// restore the original pixel depth.
//
// The program utilises 'carb', 'MBAR', 'MENU', 'WIND', and 'STR#' resources, and a 'SIZE'
// resource with the acceptSuspendResumeEvents, canBackground