[If anyone can supply sample code which works, I'll happily increase points!]
I'm using MS VC++4.2, but programming in C; writing for Win95/NT4. I want to put a bitmap on a dialog box, but change it so that the bitmap "background" is COLOR_3DFACE - and therefore the same color as the dialog box.
I've got 2 bitmaps ready; one the actual bitmap, the other a black and white mask with the pixels which are to be background color (transparent) white.
So far, my attempts have produced nothing on the dialog box; here's what I have so far...
cColor = SetBkColor(hdc1, COLOR_3DFACE);
SendDlgItemMessage(hDlg,IDC_DM,STM_SETIMAGE,(WPARAM) IMAGE_BITMAP,(LPARAM)hBit );
There are probably horrendous mistakes there; can anyone spot them and show how it's really done??