I spent many time trying to force this function work. But have no result. I use CImageList for this purpose. It is 2 lines of code need to draw system color bitmap transparently:
m_ImgLst.Create( IDB_BITMAP, 16, 1, RGB(0,255,255) );
I tried your routine, but instead of getting a transparent blit, I got an all black output. The bitmap I'm copying from is 256 colors, and the bitmap I'm blitting to is 16M colors. Can that have anything to do with it ?
Please tell me what went wrong, and how I can fix it.
I am trying to place a bitmap on my dialog based MFC project. I have used double buffering in OnInitDialog() and OnPaint(), but It didn't work to draw, bitmaps, even to SetBkColor(). Any help is appriciated.