home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!purdue!mentor.cc.purdue.edu!brazil.psych.purdue.edu!neath
- From: neath@brazil.psych.purdue.edu (Ian Neath)
- Newsgroups: comp.sys.mac.programmer
- Subject: WindowPtrs, CWindowPtrs, and Think C: Where are my colors?
- Message-ID: <55454@mentor.cc.purdue.edu>
- Date: 29 Jul 92 18:04:45 GMT
- Sender: news@mentor.cc.purdue.edu
- Organization: Purdue University
- Lines: 15
-
- I'm trying to use RGBForeColor and RGBBackColor on a color window
- created via NewCWindow, but the colors are converted to the old
- QuickDraw 8 colors (e.g., only black or white, no grey).
-
- IM V p. 207 says NewCWindow returns a CWindowPtr but the Windows.h
- that came with Think C 5.0 says it is a WindowPtr. IM V also says
- (p. 69) that if a GrafPtr (or WindowPtr) is used, it will auto-
- matically use the QDColors. So, I think I know why the QDColors
- are being used, but I don't know how to fix it. Any help greatly
- appreciated.
-
- --
- Ian Neath, PhD | There are four kinds of people in this world:
- neath@psych.purdue.edu | cretins, fools, morons, and lunatics.
- neath@purcvvm.bitnet | - Umberto Eco
-