Click here to Skip to main content
15,911,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Changing direction for the solution, I wrote some software a while ago that put together irregular chunks of bitmaps (a jigsaw game).

pDC->SetTextColor (RGB(255,255,255));
pDC->SetBkColor (RGB(0,0,0));
pDC->BitBlt (pt.x, pt.y, m_rcOriginal.Width () + (2*m_nBorderSize), m_rcOriginal.Height () + (2*m_nBorderSize), &m_dcMaskBW, 0,0, SRCAND);
pDC->BitBlt (pt.x, pt.y, m_rcOriginal.Width () + (2*m_nBorderSize), m_rcOriginal.Height () + (2*m_nBorderSize), &m_dcTile, 0,0, SRCPAINT);


The SetText/BkColor are because the source DC was a 1bit colour depth DC, and acted as a mask. The background was white, and the middle area was black. So it made a black area on the destination.

The second BitBlt ORed in a DC which had the interesting bits of the picture. The area I wanted to be transparent was black, not grey.

This would mean adapting your code to two DCs, but that should not be too hard. It also would not work if you wanted partial transparency, but it does not appear that you do.

Lastly, you could get flicker if you were unlucky - so my whole drawing code is wrapped using Keith Rule's excellent CMemDC class.

Flicker Free Drawing In MFC[^]

Iain.

Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

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 
QuestionBlue border displayed while using dhtml control_Url asignment Pin
chetanjoshi98-Jul-08 19:43
chetanjoshi98-Jul-08 19:43 

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.