Click here to Skip to main content
15,888,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: implementation of a key value array (not using std::map) ? Pin
Stuart Dootson7-Dec-09 22:57
professionalStuart Dootson7-Dec-09 22:57 
GeneralRe: implementation of a key value array (not using std::map) ? Pin
doug258-Dec-09 3:07
doug258-Dec-09 3:07 
GeneralRe: implementation of a key value array (not using std::map) ? Pin
Stuart Dootson8-Dec-09 5:59
professionalStuart Dootson8-Dec-09 5:59 
GeneralRe: implementation of a key value array (not using std::map) ? Pin
doug258-Dec-09 17:01
doug258-Dec-09 17:01 
Questionre: probelms erasing a multimap entry Pin
Alan Kurlansky2-Dec-09 9:54
Alan Kurlansky2-Dec-09 9:54 
AnswerRe: re: probelms erasing a multimap entry Pin
«_Superman_»2-Dec-09 12:25
professional«_Superman_»2-Dec-09 12:25 
GeneralRe: re: probelms erasing a multimap entry Pin
Alan Kurlansky3-Dec-09 2:51
Alan Kurlansky3-Dec-09 2:51 
QuestionTransparentBlt doesn't mask transparent color with 4-bit and 8-bit source bitmaps Pin
sashoalm2-Dec-09 8:53
sashoalm2-Dec-09 8:53 
Hi,

I've run into a problem with the TransparentBlt function.

When I use TransparentBlt with a 24-bit bitmap it correctly masks the specified transparent color, but when I call it for a 4-bit or 8-bit bitmap, it doesn't make that color transparent.

For example, if I have a bitmap with a large rectangle of MAGENTA color and give RGB(255,0,255) as the last parameter in the function, the magenta is still there with a 4-bit bitmap, but it's masked with the 32-bit one.

This problem might be because 256-color/16-color bitmaps don't use RGB values. May be they use palettes somehow.

Can anyone help with that.

There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal

AnswerRe: TransparentBlt doesn't mask transparent color with 4-bit and 8-bit source bitmaps Pin
Richard MacCutchan2-Dec-09 12:01
mveRichard MacCutchan2-Dec-09 12:01 
GeneralRe: TransparentBlt doesn't mask transparent color with 4-bit and 8-bit source bitmaps Pin
Rozis2-Dec-09 12:33
Rozis2-Dec-09 12:33 
GeneralRe: TransparentBlt doesn't mask transparent color with 4-bit and 8-bit source bitmaps Pin
Richard MacCutchan2-Dec-09 13:07
mveRichard MacCutchan2-Dec-09 13:07 
GeneralUsing a palette Pin
sashoalm2-Dec-09 17:43
sashoalm2-Dec-09 17:43 
GeneralRe: Using a palette Pin
Richard MacCutchan2-Dec-09 23:43
mveRichard MacCutchan2-Dec-09 23:43 
GeneralRe: Using a palette Pin
Rozis4-Dec-09 1:33
Rozis4-Dec-09 1:33 
GeneralRe: Using a palette Pin
Richard MacCutchan4-Dec-09 23:17
mveRichard MacCutchan4-Dec-09 23:17 
AnswerRe: TransparentBlt doesn't mask transparent color with 4-bit and 8-bit source bitmaps Pin
Rozis2-Dec-09 12:15
Rozis2-Dec-09 12:15 
Question[Message Deleted] Pin
vtech222-Dec-09 7:32
vtech222-Dec-09 7:32 
QuestionRe: Menu Program Pin
David Crow2-Dec-09 7:35
David Crow2-Dec-09 7:35 
Answer[Message Deleted] Pin
vtech222-Dec-09 7:39
vtech222-Dec-09 7:39 
QuestionRe: Menu Program. Pin
David Crow2-Dec-09 7:42
David Crow2-Dec-09 7:42 
AnswerRe: Menu Program. Pin
vtech222-Dec-09 7:44
vtech222-Dec-09 7:44 
QuestionRe: Menu Program. Pin
David Crow2-Dec-09 7:53
David Crow2-Dec-09 7:53 
GeneralRe: Menu Program. Pin
Richard MacCutchan2-Dec-09 8:28
mveRichard MacCutchan2-Dec-09 8:28 
General[Message Deleted] Pin
vtech222-Dec-09 8:32
vtech222-Dec-09 8:32 
GeneralRe: Menu Program. Pin
Tim Craig2-Dec-09 9:25
Tim Craig2-Dec-09 9:25 

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.