Click here to Skip to main content
15,920,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: strin find Pin
Hamid_RT13-Mar-07 18:12
Hamid_RT13-Mar-07 18:12 
QuestionError in Network based application Pin
Vichitram13-Mar-07 17:40
Vichitram13-Mar-07 17:40 
AnswerRe: Error in Network based application Pin
Mark Salsbery14-Mar-07 6:53
Mark Salsbery14-Mar-07 6:53 
QuestionSystem!!! Pin
Tran Ngoc Minh13-Mar-07 17:29
Tran Ngoc Minh13-Mar-07 17:29 
AnswerRe: System!!! Pin
Hamid_RT13-Mar-07 18:16
Hamid_RT13-Mar-07 18:16 
QuestionOnLButtonDown Pin
Aint13-Mar-07 16:45
Aint13-Mar-07 16:45 
AnswerRe: OnLButtonDown Pin
Hamid_RT13-Mar-07 18:14
Hamid_RT13-Mar-07 18:14 
GeneralRe: OnLButtonDown Pin
Aint13-Mar-07 18:37
Aint13-Mar-07 18:37 
GeneralRe: OnLButtonDown Pin
Parthi_Appu13-Mar-07 19:10
Parthi_Appu13-Mar-07 19:10 
GeneralRe: OnLButtonDown Pin
Aint13-Mar-07 20:06
Aint13-Mar-07 20:06 
GeneralRe: OnLButtonDown Pin
Hamid_RT13-Mar-07 20:23
Hamid_RT13-Mar-07 20:23 
AnswerRe: OnLButtonDown Pin
William.Wang13-Mar-07 19:21
William.Wang13-Mar-07 19:21 
QuestionAlphaBlend() strange colors. Pin
PatrykDabrowski13-Mar-07 13:05
PatrykDabrowski13-Mar-07 13:05 
HelloSmile | :)

I have a gradient-like background with an owner drawn button. I use AlphaBlend() to draw button's image. Now, the strange thing is:

Background pixel = RGB(168,168,168)
Source pixel = 0xFFFF0000 (AARRGGBB)

After AlphaBlend() with SourceConstantAlpha=0xff the output is RGB(255,0,0) - that's correct but when I change a bit the source pixel to

Source pixel = 0x00FF0000 (AARRGGBB)

I receive pixel RGB(255,168,168)?!?! I should get RGB(168,168,168) because the source alpha is 0x00?!?!?

After some tests with different RGB values, I noticed that my blending works like it 'thinks' that my background is white (255,255,255)?!? When I make all source pixels to have 0xFF alpha value and just play with SourceConstantAlpha value, it's working fine!?! - my button is drawn with proper transparency?!?
I need to play a bit with the source pixels' alpha value for 'soft' button's border.

Does anyone know what could be wrong?? I'm using winxp/vs2003

Thanks a lot!!

QuestionRe: AlphaBlend() strange colors. Pin
Mark Salsbery13-Mar-07 16:04
Mark Salsbery13-Mar-07 16:04 
QuestionRe: AlphaBlend() strange colors. Pin
PatrykDabrowski20-Mar-07 2:01
PatrykDabrowski20-Mar-07 2:01 
AnswerRe: AlphaBlend() strange colors. Pin
Mark Salsbery20-Mar-07 7:45
Mark Salsbery20-Mar-07 7:45 
Questioncompatibility problem Pin
duca_andrei13-Mar-07 11:11
duca_andrei13-Mar-07 11:11 
AnswerRe: compatibility problem Pin
Paresh Chitte13-Mar-07 18:37
Paresh Chitte13-Mar-07 18:37 
QuestionClearing data Pin
eRose2413-Mar-07 11:10
eRose2413-Mar-07 11:10 
QuestionRe: Clearing data Pin
prasad_som13-Mar-07 15:45
prasad_som13-Mar-07 15:45 
AnswerRe: Clearing data Pin
Hamid_RT13-Mar-07 18:20
Hamid_RT13-Mar-07 18:20 
Questionscrollbar problem Pin
prithaa13-Mar-07 9:25
prithaa13-Mar-07 9:25 
AnswerRe: scrollbar problem Pin
Mark Salsbery13-Mar-07 16:09
Mark Salsbery13-Mar-07 16:09 
GeneralRe: scrollbar problem Pin
prithaa13-Mar-07 18:44
prithaa13-Mar-07 18:44 
GeneralRe: scrollbar problem Pin
Mark Salsbery14-Mar-07 6:04
Mark Salsbery14-Mar-07 6:04 

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.