home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!purdue!mentor.cc.purdue.edu!brazil.psych.purdue.edu!neath
- From: neath@brazil.psych.purdue.edu (Ian Neath)
- Newsgroups: comp.sys.mac.programmer
- Subject: Summary: WindowPtrs, CWindowPtrs, and Think C: Where are my colors?
- Summary: Beware the GrafPtr!
- Message-ID: <55555@mentor.cc.purdue.edu>
- Date: 30 Jul 92 16:23:59 GMT
- Sender: news@mentor.cc.purdue.edu
- Organization: Purdue University
- Lines: 18
-
- Thanks to all who responded. First, NewCWindow does return a WindowPtr.
- IM V is slightly incorrect in that it says a CWindowPtr is returned.
- This is true, but you call it a WindowPtr: the system knows what it
- really is.
-
- Second, I had an alert appear between SetPort( myWindow ) and the
- RGBBackColor call. This caused the system to think myWindow was
- a GrafPtr and not a CGrafPtr. Rearranging GetPorts and SetPorts
- did the trick.
-
- Thanks again.
-
- - Ian
-
- --
- 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
-