BDLG - Bitmap DiaLoG
This is the MSDN example with a few corruptions added.
As I was putting this page together and testing out the sample program, I noticed that some of the dialogs didn't run quite the way I remembered them. (I thought they were all working.) I think the code is mainly good, but you'll need to tweak some things.
We got a lot of the code from CodeGuru and CodeProject, in addition to the MSDN sample, and the purpose of this for me is to keep in one place stuff I needed to know about bitmaps.
Corruption | Necessary tweak |
Load File | it used to load and display bitmap from a *.bmp file, now it doesn't. Probably that file is missing. |
Colored Group Box | it fills in the screen area of a group box with a background color. It used to work right, but now it seems to cover up all the other controls inside the group box. |
Transparent | forgot what this did |
Create | create a bitmap on the fly and use as background for the dialog |
Ellipse | draw an ellipse and fill with a null brush. |
Screen Capture | capture the screen to a bitmap and set it to an image control |
Copy Control | copy from one image control to another |
If you fix any bugs, please drop me a note at todd@SaysLaw.com, thanks.