Click here to Skip to main content
16,005,038 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to launch a second application? Pin
IlanTal10-May-07 0:52
IlanTal10-May-07 0:52 
AnswerRe: How to launch a second application? Pin
#realJSOP10-May-07 2:06
professional#realJSOP10-May-07 2:06 
QuestionWYSIWYG Text Box Printing w/ Tabs Pin
GabeON9-May-07 6:05
GabeON9-May-07 6:05 
AnswerRe: WYSIWYG Text Box Printing w/ Tabs Pin
Mark Salsbery9-May-07 6:26
Mark Salsbery9-May-07 6:26 
GeneralRe: WYSIWYG Text Box Printing w/ Tabs Pin
GabeON9-May-07 9:42
GabeON9-May-07 9:42 
QuestionGDI - DC questions [modified] Pin
Nelek9-May-07 4:52
protectorNelek9-May-07 4:52 
AnswerRe: GDI - DC questions Pin
Hans Dietrich9-May-07 4:58
mentorHans Dietrich9-May-07 4:58 
AnswerRe: GDI - DC questions Pin
Mark Salsbery9-May-07 6:19
Mark Salsbery9-May-07 6:19 
Nelek wrote:
But... what is exactly this parameter for?


I've never found any documentation on LOGPALETTE.palVersion. I've always used 0x0300 Smile | :)

Nelek wrote:
As those .rc Bitmaps are made in 20-Colors... Do I really need the Palette?


This depends on the format of the DDB. If it's 1, 4, or 8 bitsperpixel then the data for each
pixel is an index into the palette associated with the device that the bitmap is dependent on.
For 16+ bits-per-pixel bitmaps, the color info is stored in each pixels data so no mapping to
a palette is necessary when converting to a DIB.

Since resource bitmaps are meant for display devices, the default system palette should work fine
if you need it for conversion.

If you use GetDIBits to do the conversion, GetDIBits will use the palette associated with the
DC passed to the function.

Here's another article: How To Convert Between Device-Dependent Bitmaps and DIBs[^]

Mark


"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

AnswerThanks Pin
Nelek9-May-07 22:12
protectorNelek9-May-07 22:12 
QuestionService Host Pin
tom groezer9-May-07 3:52
tom groezer9-May-07 3:52 
AnswerRe: Service Host Pin
Mark Salsbery9-May-07 4:29
Mark Salsbery9-May-07 4:29 
AnswerRe: Service Host Pin
Hans Dietrich9-May-07 4:30
mentorHans Dietrich9-May-07 4:30 
GeneralRe: Service Host Pin
Roger Stoltz9-May-07 4:42
Roger Stoltz9-May-07 4:42 
GeneralRe: Service Host Pin
Hans Dietrich9-May-07 4:46
mentorHans Dietrich9-May-07 4:46 
QuestionLinker error:? Pin
$uresh $hanmugam9-May-07 3:36
$uresh $hanmugam9-May-07 3:36 
AnswerRe: Linker error:? Pin
Hans Dietrich9-May-07 3:45
mentorHans Dietrich9-May-07 3:45 
GeneralRe: Linker error:? [modified] Pin
$uresh $hanmugam9-May-07 20:43
$uresh $hanmugam9-May-07 20:43 
AnswerRe: Linker error:? Pin
Cedric Moonen9-May-07 3:46
Cedric Moonen9-May-07 3:46 
Questionstart menu Pin
prathuraj9-May-07 3:31
prathuraj9-May-07 3:31 
AnswerRe: start menu Pin
Hans Dietrich9-May-07 3:35
mentorHans Dietrich9-May-07 3:35 
GeneralRe: start menu Pin
prathuraj9-May-07 6:05
prathuraj9-May-07 6:05 
GeneralRe: start menu Pin
Hans Dietrich9-May-07 6:56
mentorHans Dietrich9-May-07 6:56 
QuestionRe: start menu Pin
Rajesh R Subramanian9-May-07 4:43
professionalRajesh R Subramanian9-May-07 4:43 
AnswerRe: start menu Pin
prathuraj9-May-07 6:04
prathuraj9-May-07 6:04 
GeneralRe: start menu Pin
Rajesh R Subramanian9-May-07 6:48
professionalRajesh R Subramanian9-May-07 6:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.