Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!dsac.dla.mil!dsacg3.dsac.dla.mil!nfs1675 From: nfs1675@dsacg3.dsac.dla.mil (Michael S Figg) Newsgroups: comp.sys.amiga.programmer Subject: Re: Help with reading System Palette Summary: GetPrefs() Message-ID: <3268@dsacg3.dsac.dla.mil> Date: 4 Jun 91 16:48:41 GMT References: <1991Jun4.133739.9601@maytag.waterloo.edu> Organization: Defense Logistics Agency Systems Automation Center, Columbus Lines: 23 In article <1991Jun4.133739.9601@maytag.waterloo.edu>, markb@csg.uwaterloo.ca (Mark Brezina) writes: > > Hi. I need to know how to read the current system palette as a series > of RGB values. I've tried GetSystemPaletteEntries() but that function returns > 20 predefined colors, not necessarily the current colors Windows is using. > > Any suggestions? Try looking at GetPrefs() and SetPrefs(). It has been a long time since I used these but I think GetPrefs() will return a pointer to structure having all the preferances stuff in it. From there you can play with the colortable values, changing them with SetRGB4() I think. ---Mike, -- | Michael Figg DSAC-FSD My Karma ran over your Dogma! | DLA Systems Automation Center | Cols, Ohio mfigg@dsac.dla.mil | CIS: 73777,360