transparency

Started by
0 comments, last by arkam 23 years, 3 months ago
hi, i am a newby and then i have a simple question that is ruining my programmer life : i draw a background in a CWnd and then i BitBlt a bitmap over it ... and the rectangle around my bitmap appears ! (( how can i use transparency ? i am working with GDI under VC++ 6.0 thanks !
Advertisement
Have you tried this ->
BOOL TransparentBlt(
HDC hdcDest, // handle to destination DC
int nXOriginDest, // x-coord of destination upper-left corner
int nYOriginDest, // y-coord of destination upper-left corner
int nWidthDest, // width of destination rectangle
int hHeightDest, // height of destination rectangle
HDC hdcSrc, // handle to source DC
int nXOriginSrc, // x-coord of source upper-left corner
int nYOriginSrc, // y-coord of source upper-left corner
int nWidthSrc, // width of source rectangle
int nHeightSrc, // height of source rectangle
UINT crTransparent // color to make transparent
);

This topic is closed to new replies.

Advertisement