home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / programm / 6290 < prev    next >
Encoding:
Text File  |  1992-11-09  |  717 b   |  20 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!gmd.de!ira.uka.de!ira.uka.de!math.fu-berlin.de!Sirius.dfn.de!chx400!josef!erzberg
  3. From: erzberg@ifi.unizh.ch (Martin Erzberger)
  4. Subject: Re: Overriding system colors (Using 256 distinct colors)
  5. Message-ID: <1992Nov9.131226.2359@ifi.unizh.ch>
  6. Organization: University of Zurich, Department of Computer Science
  7. References: <1992Nov8.195236.1537@abo.fi>
  8. Date: Mon, 9 Nov 92 13:12:26 GMT
  9. Lines: 9
  10.  
  11. I use:
  12.  
  13. hpal = GpiCreatePalette (hab, 0, LCOLF_CONSECRGB, ulColors, (PULONG)*plTable);
  14. GpiSelectPalette (hps, hpal);
  15. WinRealizePalette (hwndClient, hps, &ulTemp);
  16.  
  17. On my system, this works (also XGA).
  18. Regards, Martin
  19.  
  20.