home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 13167 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  1.1 KB

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