Click here to Skip to main content
15,914,014 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: assembly code for release code? Pin
George_George10-Jul-08 22:58
George_George10-Jul-08 22:58 
QuestionHow to set the padding between tabs in a owner-drawn tabctrl? Pin
jtasph8-Jul-08 22:07
jtasph8-Jul-08 22:07 
QuestionIShellFolder Pin
john56328-Jul-08 20:59
john56328-Jul-08 20:59 
AnswerRe: IShellFolder Pin
KarstenK8-Jul-08 21:09
mveKarstenK8-Jul-08 21:09 
QuestionHow to set main dialog in MFC? Pin
AnithaSubramani8-Jul-08 20:45
AnithaSubramani8-Jul-08 20:45 
AnswerRe: How to set main dialog in MFC? Pin
Rajesh R Subramanian8-Jul-08 20:51
professionalRajesh R Subramanian8-Jul-08 20:51 
AnswerRe: How to set main dialog in MFC? Pin
Cedric Moonen8-Jul-08 20:52
Cedric Moonen8-Jul-08 20:52 
QuestionHow can I use AlphaBlend API to display a transparent background bitmap? Pin
danginkgo8-Jul-08 20:31
danginkgo8-Jul-08 20:31 
I have a bitmap that has an alpha channel for the background.
I tried using AlphaBlend, but the background was't displayed transparent.
The background was white.
This is the code that I'm using:
<br />
BLENDFUNCTION blendF;        <br />
blendF.BlendOp             = AC_SRC_OVER;<br />
blendF.BlendFlags          = 0;<br />
blendF.SourceConstantAlpha = 255;<br />
blendF.AlphaFormat         = AC_SRC_ALPHA;<br />
       <br />
POINT p;  p.x=p.y=23;                                                               DPtoLP(hdcMem, &p, 1);  <br />
AlphaBlend(lpdis->hDC,                                   <br />
	   x, y, bm.bmWidth, bm.bmHeight, <br />
           hdcMem,<br />
           0, 0, <br />
           p.x,p.y, <br />
           blendF);   <br />


Am I doing something wrong?

danginkgo

AnswerRe: How can I use AlphaBlend API to display a transparent background bitmap? Pin
SandipG 8-Jul-08 20:48
SandipG 8-Jul-08 20:48 
GeneralRe: How can I use AlphaBlend API to display a transparent background bitmap? Pin
danginkgo8-Jul-08 21:25
danginkgo8-Jul-08 21:25 
GeneralRe: How can I use AlphaBlend API to display a transparent background bitmap? Pin
SandipG 8-Jul-08 21:33
SandipG 8-Jul-08 21:33 
GeneralRe: How can I use AlphaBlend API to display a transparent background bitmap? Pin
danginkgo8-Jul-08 21:35
danginkgo8-Jul-08 21:35 
GeneralRe: How can I use AlphaBlend API to display a transparent background bitmap? Pin
SandipG 8-Jul-08 21:38
SandipG 8-Jul-08 21:38 
GeneralRe: How can I use AlphaBlend API to display a transparent background bitmap? Pin
danginkgo8-Jul-08 21:49
danginkgo8-Jul-08 21:49 
GeneralRe: How can I use AlphaBlend API to display a transparent background bitmap? Pin
SandipG 8-Jul-08 22:35
SandipG 8-Jul-08 22:35 
GeneralRe: How can I use AlphaBlend API to display a transparent background bitmap? Pin
danginkgo8-Jul-08 22:40
danginkgo8-Jul-08 22:40 
AnswerRe: How can I use AlphaBlend API to display a transparent background bitmap? Pin
Paresh Chitte8-Jul-08 20:50
Paresh Chitte8-Jul-08 20:50 
GeneralRe: How can I use AlphaBlend API to display a transparent background bitmap? Pin
danginkgo8-Jul-08 20:53
danginkgo8-Jul-08 20:53 
AnswerRe: How can I use AlphaBlend API to display a transparent background bitmap? Pin
Iain Clarke, Warrior Programmer8-Jul-08 22:25
Iain Clarke, Warrior Programmer8-Jul-08 22:25 
GeneralRe: How can I use AlphaBlend API to display a transparent background bitmap? Pin
danginkgo9-Jul-08 0:22
danginkgo9-Jul-08 0:22 
AnswerRe: How can I use AlphaBlend API to display a transparent background bitmap? Pin
Mark Salsbery9-Jul-08 5:46
Mark Salsbery9-Jul-08 5:46 
Questionsending CList using WM_COPYDATA for interprocess communication Pin
Prasann Mayekar8-Jul-08 20:26
Prasann Mayekar8-Jul-08 20:26 
AnswerRe: sending CList using WM_COPYDATA for interprocess communication Pin
SandipG 8-Jul-08 20:50
SandipG 8-Jul-08 20:50 
AnswerRe: sending CList using WM_COPYDATA for interprocess communication Pin
Varghese Paul M8-Jul-08 23:14
Varghese Paul M8-Jul-08 23:14 
AnswerRe: sending CList using WM_COPYDATA for interprocess communication Pin
Mark Salsbery9-Jul-08 5:33
Mark Salsbery9-Jul-08 5:33 

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.