🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2776

Palettes

#2776
From: Jeff Watkins
Date: Wed, 22 May 1991 01:56
24 lines
1326 bytes
I have a problem with using windows palettes.

What I am trying to do is to define two pens with palette relative colors.
These two pens live in a dll where functions make use of them with user
defined palettes or the dll's default palette.  If I use the default
palette, and never use an application defined palette, all seems to work
ok.  However, if I do use an application palette, those pens will be
forever the colors from that palette.  If I happen to use the default
palette first, then the user palette will never show.

What I need to know is, does windows fix-up palette relative references
when they are selected?  And if so, is there any other way to do what I am
trying to do?

thanks for the help...

ciao
jeff

-- 
Jeff Watkins                       jwatkins@cadsun6.gatech.edu
Lotus Development WP Devision      (404) 315-0105 voice  (404) 315-0231 data
		"It isn't whether the child lives or dies,
			It is who makes the decision."
Technical Details
Message-ID: <29582@hydra.gatech.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!sdd.hp.com!mips!wrdis01!gatech!prism!gt3070b

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!sdd.hp.com!mips!wrdis01!gatech!prism!gt3070b
From: gt3070b@prism.gatech.EDU (Jeff Watkins)
Newsgroups: comp.windows.ms.programmer
Subject: Palettes
Message-ID: <29582@hydra.gatech.EDU>
Date: 22 May 91 01:56:29 GMT
Organization: Lotus Development Word Processing Devision
Lines: 24