Extending CPictureHolder for loading BMP, JPG, etc. Wisconsin

This class extends the MFC CPictureHolder class to include better support for enhanced metafiles, access to picture handles, loading from files, and other capabilities.

Local Companies

Practice Management Solutions Inc
414-352-8160
7571 N Teutonia Ave
Milwaukee, WI
codeeo
608 305 1060
1360 Regent Street #155
Madison, WI
Gates Business Solutions
608-661-0810
2810 CrossRoads DR
Madison, WI
Madison Software Inc
608-833-5410
6666 Odana Rd
Madison, WI
Electroniclaim
262-240-9700
11357 N. Port Washington Rd
Mequon, WI
KMSpecialties
414-751-4009
7434-3 Halverson Rd
Three Lakes, WI
Image Processing Software Inc
608-233-5033
6409 Appalachian Way
Madison, WI
Gbl Software LLC
414-760-9029
6417 W Hustis St
Milwaukee, WI
Access Technologies International
414-289-3121
840 N Old World 3rd St
Milwaukee, WI
Guild Software Inc
414-259-0959
10437 W Innovation DR
Milwaukee, WI

provided by: 
Originally published at Internet.com


Environment: VC6 (earlier probably ok too), Win2K/95/98

This class extends the MFC CPictureHolder class to include




Simply include the .h and .cpp into your project and use it as you would CPictureHolder.

You can also use this instead of the CBitmap class (but with code changes, of course).

And remember that CPictureHolder has a Render method to draw pictures, and it support transparency for GIF's etc.

I built this with various versions of VC6. I don't see why it wouldn't work on other recent versions.

NOTE 1: I would usually have made many of these member functions const. However, CPictureHolder doesn't use any consts, and so I would have to have done lots of (potentially unsafe) const casts in my code.

NOTE 2: Chensu says that OldLoadPicture/IPicture has problems with palettes. I haven't looked at his code yet, but if so, I will (with his permission) update this code to include whatever fixes he added to better support palettes

NOTE 3: I haven't included support for icons in here. It would be trivial to add so I'll leave it as an excercise for the reader :-) ...

Read article at Internet.com site

Featured Local Company

Practice Management Solutions Inc

414-352-8160
7571 N Teutonia Ave
Milwaukee, WI

Regional Articles
- Extending CPictureHolder for loading BMP, JPG, etc. Appleton WI
- Extending CPictureHolder for loading BMP, JPG, etc. Baraboo WI
- Extending CPictureHolder for loading BMP, JPG, etc. Beaver Dam WI
- Extending CPictureHolder for loading BMP, JPG, etc. Beloit WI
- Extending CPictureHolder for loading BMP, JPG, etc. Brookfield WI
- Extending CPictureHolder for loading BMP, JPG, etc. Burlington WI
- Extending CPictureHolder for loading BMP, JPG, etc. Cedarburg WI
- Extending CPictureHolder for loading BMP, JPG, etc. Chippewa Falls WI
- Extending CPictureHolder for loading BMP, JPG, etc. Cudahy WI
- Extending CPictureHolder for loading BMP, JPG, etc. De Pere WI
- Extending CPictureHolder for loading BMP, JPG, etc. Delavan WI
- Extending CPictureHolder for loading BMP, JPG, etc. Eau Claire WI
- Extending CPictureHolder for loading BMP, JPG, etc. Elkhorn WI
- Extending CPictureHolder for loading BMP, JPG, etc. Fond Du Lac WI
- Extending CPictureHolder for loading BMP, JPG, etc. Fort Atkinson WI
- Extending CPictureHolder for loading BMP, JPG, etc. Franklin WI
- Extending CPictureHolder for loading BMP, JPG, etc. Green Bay WI
- Extending CPictureHolder for loading BMP, JPG, etc. Hartland WI
- Extending CPictureHolder for loading BMP, JPG, etc. Janesville WI
- Extending CPictureHolder for loading BMP, JPG, etc. Kaukauna WI
- Extending CPictureHolder for loading BMP, JPG, etc. Kenosha WI
- Extending CPictureHolder for loading BMP, JPG, etc. La Crosse WI
- Extending CPictureHolder for loading BMP, JPG, etc. Lake Geneva WI
- Extending CPictureHolder for loading BMP, JPG, etc. Madison WI
- Extending CPictureHolder for loading BMP, JPG, etc. Manitowoc WI
- Extending CPictureHolder for loading BMP, JPG, etc. Marinette WI
- Extending CPictureHolder for loading BMP, JPG, etc. Marshfield WI
- Extending CPictureHolder for loading BMP, JPG, etc. Menasha WI
- Extending CPictureHolder for loading BMP, JPG, etc. Menomonee Falls WI
- Extending CPictureHolder for loading BMP, JPG, etc. Menomonie WI
- Extending CPictureHolder for loading BMP, JPG, etc. Merrill WI
- Extending CPictureHolder for loading BMP, JPG, etc. Middleton WI
- Extending CPictureHolder for loading BMP, JPG, etc. Milwaukee WI
- Extending CPictureHolder for loading BMP, JPG, etc. Mosinee WI
- Extending CPictureHolder for loading BMP, JPG, etc. Mukwonago WI
- Extending CPictureHolder for loading BMP, JPG, etc. Muskego WI
- Extending CPictureHolder for loading BMP, JPG, etc. Neenah WI
- Extending CPictureHolder for loading BMP, JPG, etc. New Berlin WI
- Extending CPictureHolder for loading BMP, JPG, etc. Oak Creek WI
- Extending CPictureHolder for loading BMP, JPG, etc. Oconomowoc WI
- Extending CPictureHolder for loading BMP, JPG, etc. Onalaska WI
- Extending CPictureHolder for loading BMP, JPG, etc. Oshkosh WI
- Extending CPictureHolder for loading BMP, JPG, etc. Pewaukee WI
- Extending CPictureHolder for loading BMP, JPG, etc. Racine WI
- Extending CPictureHolder for loading BMP, JPG, etc. Rhinelander WI
- Extending CPictureHolder for loading BMP, JPG, etc. Rice Lake WI
- Extending CPictureHolder for loading BMP, JPG, etc. River Falls WI
- Extending CPictureHolder for loading BMP, JPG, etc. Schofield WI
- Extending CPictureHolder for loading BMP, JPG, etc. Shawano WI
- Extending CPictureHolder for loading BMP, JPG, etc. Sheboygan WI
- Extending CPictureHolder for loading BMP, JPG, etc. South Milwaukee WI
- Extending CPictureHolder for loading BMP, JPG, etc. Stevens Point WI
- Extending CPictureHolder for loading BMP, JPG, etc. Sturgeon Bay WI
- Extending CPictureHolder for loading BMP, JPG, etc. Sun Prairie WI
- Extending CPictureHolder for loading BMP, JPG, etc. Superior WI
- Extending CPictureHolder for loading BMP, JPG, etc. Thiensville WI
- Extending CPictureHolder for loading BMP, JPG, etc. Two Rivers WI
- Extending CPictureHolder for loading BMP, JPG, etc. Watertown WI
- Extending CPictureHolder for loading BMP, JPG, etc. Waukesha WI
- Extending CPictureHolder for loading BMP, JPG, etc. Waupaca WI
- Extending CPictureHolder for loading BMP, JPG, etc. Wausau WI
- Extending CPictureHolder for loading BMP, JPG, etc. West Bend WI
- Extending CPictureHolder for loading BMP, JPG, etc. Whitewater WI
- Extending CPictureHolder for loading BMP, JPG, etc. Wisconsin Rapids WI

Rss   Delicious   Digg   Add To My Yahoo   Add To My Google   Bookmark   Search Plugin

Topics:
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML