🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1792

Re: Overriding system colors (Using 256 distinct colors)

#1792
From: Martin Erzberger
Date: Mon, 09 Nov 1992 13:12
8 lines
734 bytes
I use:

hpal = GpiCreatePalette (hab, 0, LCOLF_CONSECRGB, ulColors, (PULONG)*plTable);
GpiSelectPalette (hps, hpal);
WinRealizePalette (hwndClient, hps, &ulTemp);

On my system, this works (also XGA).
Regards, Martin
Technical Details
Message-ID: <1992Nov9.131226.2359@ifi.unizh.ch>
Path: arc1-ca.pugleaf.net!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
References: <1992Nov8.195236.1537@abo.fi>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!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
From: erzberg@ifi.unizh.ch (Martin Erzberger)
Subject: Re: Overriding system colors (Using 256 distinct colors)
Message-ID: <1992Nov9.131226.2359@ifi.unizh.ch>
Organization: University of Zurich, Department of Computer Science
References: <1992Nov8.195236.1537@abo.fi>
Date: Mon, 9 Nov 92 13:12:26 GMT
Lines: 9