The MFC wizard created the dialog and all, no ........... I am not demonstrating how to write a win32 program. I never stated that I was. I said I was demonstrating how to set the region of your window to that of a bitmap.
If you simply add a member:
and call in your constructor or OnInitDialog() func:
then call in OnInitDialog():
You will have quite simply set the region for your window to the specified bitmap. All you need to do is copy the DibToRgn() function into your dialog's class. Perhaps I should have elaborated a bit more, but I didn't know there were such stupid ..........s on this board. I guess I should have just posted the one function and told you to go figure out for yourself what to do with it, huh?
I very obviously placed
wherever I added code to the program. All that a genius such as yourself need worry about is copying the parts that fit your needs and compile.