home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / programm / 6384 < prev    next >
Encoding:
Text File  |  1992-11-12  |  1.1 KB  |  33 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!mcsun!news.funet.fi!aton.abo.fi!usenet
  3. From: PNIELSEN@finabo.abo.fi (Peter Nielsen)
  4. Subject: Re: Overriding system colors (Using 256 distinct colors)
  5. In-Reply-To: PNIELSEN@finabo.abo.fi's message of Sun, 8 Nov 1992 19:52:36 GMT
  6. Message-ID: <1992Nov12.210542.11407@abo.fi>
  7. Sender: usenet@abo.fi (Usenet NEWS)
  8. Organization: Abo Akademi University, Finland
  9. References:  <1992Nov8.195236.1537@abo.fi>
  10. Date: Thu, 12 Nov 1992 21:05:42 GMT
  11. X-News-Reader: VMS NEWS 1.23
  12. Lines: 19
  13.  
  14.  
  15. OK! My problems with the (XGA) palette manager was caused by OS/2.
  16.  
  17. CSD (6055) fixes the problem! 
  18.  
  19. Thus the following code _is_ correct (LCOL_OVERRIDE_DEFAULT_COLORS must be
  20. used, if you want all colors to appear correctly!)
  21.  
  22.      hpal = GpiCreatePalette (hab, LCOL_OVERRIDE_DEFAULT_COLORS, 
  23.                               LCOLF_CONSECRGB, 256L, (PULONG)palettePtr);
  24.      GpiSelectPalette (hpsMemory, hpal);
  25.      WinRealizePalette (hwnd, hpsMemory, &numcol);
  26.  
  27.  
  28. Peter Nielsen
  29. ---
  30. pnielsen@finabo.abo.fi        (VAX)
  31. pnielsen@aton.abo.fi        (UNIX)
  32. pnielsen@ygdrasil.vtyh.fi    (NeXT)
  33.