Solved

How to get 256 color palette from System ?

Posted on 1998-08-26
1
425 Views
Last Modified: 2013-11-19
How to Get 256 color palette from system ?
I've use Getsystempalette, but get only 20 color.
then ResizePalette only resize the palette size
but fill the remain 236 with RGB(0,0,0)
Would you help me ? Thank you very much.
0
Comment
Question by:happy050597
1 Comment
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
ID: 1321339
The trick is to use the PC_EXPLICIT flag. Check out the Win32 sample "Mypal: Palette Management Example".
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question