?
Solved

How to get 256 color palette from System ?

Posted on 1998-08-26
1
Medium Priority
?
456 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 300 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month14 days, 14 hours left to enroll

839 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