Extending CPictureHolder for loading BMP, JPG, etc. Ohio

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

Desktop Solutions
614-884-3714
3021 Bethel RD
Columbus, OH
Megasys Software Services
614-457-5544
1681 Old Henderson RD
Columbus, OH
Valent Software
614-457-9000
2000 Henderson RD
Columbus, OH
Ventech Solutions
614-751-1167
950 Taylor Station Rd
Columbus, OH
Technology Software Inc
614-442-8400
1505 Bethel RD
Columbus, OH
Teamwork Solutions
614-457-7100
1880 Mackenzie DR
Columbus, OH
Priority One Solutions
216-298-4020
2130 Superior Ave E
Cleveland, OH
Crystal Vision Software
419-472-0000
3601 W Alexis RD
Toledo, OH
F 1 Technologies
419-255-6366
2108 Glenwood Ave
Toledo, OH
ProTrain & True North Career Services Inc.
(513) 825-1555
650 Northland Boulevard
Cincinnati, OH

 

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

Desktop Solutions

614-884-3714
3021 Bethel RD
Columbus, OH

Regional Articles
- Extending CPictureHolder for loading BMP, JPG, etc. Akron OH
- Extending CPictureHolder for loading BMP, JPG, etc. Alliance OH
- Extending CPictureHolder for loading BMP, JPG, etc. Amelia OH
- Extending CPictureHolder for loading BMP, JPG, etc. Ashland OH
- Extending CPictureHolder for loading BMP, JPG, etc. Ashtabula OH
- Extending CPictureHolder for loading BMP, JPG, etc. Athens OH
- Extending CPictureHolder for loading BMP, JPG, etc. Avon Lake OH
- Extending CPictureHolder for loading BMP, JPG, etc. Barberton OH
- Extending CPictureHolder for loading BMP, JPG, etc. Batavia OH
- Extending CPictureHolder for loading BMP, JPG, etc. Bay Village OH
- Extending CPictureHolder for loading BMP, JPG, etc. Beachwood OH
- Extending CPictureHolder for loading BMP, JPG, etc. Bedford OH
- Extending CPictureHolder for loading BMP, JPG, etc. Bellefontaine OH
- Extending CPictureHolder for loading BMP, JPG, etc. Bowling Green OH
- Extending CPictureHolder for loading BMP, JPG, etc. Broadview Heights OH
- Extending CPictureHolder for loading BMP, JPG, etc. Brook Park OH
- Extending CPictureHolder for loading BMP, JPG, etc. Brunswick OH
- Extending CPictureHolder for loading BMP, JPG, etc. Bucyrus OH
- Extending CPictureHolder for loading BMP, JPG, etc. Canal Winchester OH
- Extending CPictureHolder for loading BMP, JPG, etc. Canfield OH
- Extending CPictureHolder for loading BMP, JPG, etc. Canton OH
- Extending CPictureHolder for loading BMP, JPG, etc. Celina OH
- Extending CPictureHolder for loading BMP, JPG, etc. Chagrin Falls OH
- Extending CPictureHolder for loading BMP, JPG, etc. Chardon OH
- Extending CPictureHolder for loading BMP, JPG, etc. Chillicothe OH
- Extending CPictureHolder for loading BMP, JPG, etc. Cincinnati OH
- Extending CPictureHolder for loading BMP, JPG, etc. Circleville OH
- Extending CPictureHolder for loading BMP, JPG, etc. Cleveland OH
- Extending CPictureHolder for loading BMP, JPG, etc. Columbus OH
- Extending CPictureHolder for loading BMP, JPG, etc. Conneaut OH
- Extending CPictureHolder for loading BMP, JPG, etc. Coshocton OH
- Extending CPictureHolder for loading BMP, JPG, etc. Cuyahoga Falls OH
- Extending CPictureHolder for loading BMP, JPG, etc. Dayton OH
- Extending CPictureHolder for loading BMP, JPG, etc. Defiance OH
- Extending CPictureHolder for loading BMP, JPG, etc. Delaware OH
- Extending CPictureHolder for loading BMP, JPG, etc. Dublin OH
- Extending CPictureHolder for loading BMP, JPG, etc. East Liverpool OH
- Extending CPictureHolder for loading BMP, JPG, etc. Eastlake OH
- Extending CPictureHolder for loading BMP, JPG, etc. Eaton OH
- Extending CPictureHolder for loading BMP, JPG, etc. Elyria OH
- Extending CPictureHolder for loading BMP, JPG, etc. Euclid OH
- Extending CPictureHolder for loading BMP, JPG, etc. Fairborn OH
- Extending CPictureHolder for loading BMP, JPG, etc. Fairfield OH
- Extending CPictureHolder for loading BMP, JPG, etc. Findlay OH
- Extending CPictureHolder for loading BMP, JPG, etc. Fostoria OH
- Extending CPictureHolder for loading BMP, JPG, etc. Franklin OH
- Extending CPictureHolder for loading BMP, JPG, etc. Fremont OH
- Extending CPictureHolder for loading BMP, JPG, etc. Galion OH
- Extending CPictureHolder for loading BMP, JPG, etc. Gallipolis OH
- Extending CPictureHolder for loading BMP, JPG, etc. Galloway OH
- Extending CPictureHolder for loading BMP, JPG, etc. Girard OH
- Extending CPictureHolder for loading BMP, JPG, etc. Grove City OH
- Extending CPictureHolder for loading BMP, JPG, etc. Hamilton OH
- Extending CPictureHolder for loading BMP, JPG, etc. Heath OH
- Extending CPictureHolder for loading BMP, JPG, etc. Hilliard OH
- Extending CPictureHolder for loading BMP, JPG, etc. Hubbard OH
- Extending CPictureHolder for loading BMP, JPG, etc. Ironton OH
- Extending CPictureHolder for loading BMP, JPG, etc. Kent OH
- Extending CPictureHolder for loading BMP, JPG, etc. Lakewood OH
- Extending CPictureHolder for loading BMP, JPG, etc. Lancaster OH
- Extending CPictureHolder for loading BMP, JPG, etc. Lebanon OH
- Extending CPictureHolder for loading BMP, JPG, etc. Lima OH
- Extending CPictureHolder for loading BMP, JPG, etc. Lorain OH
- Extending CPictureHolder for loading BMP, JPG, etc. Loveland OH
- Extending CPictureHolder for loading BMP, JPG, etc. Madison OH
- Extending CPictureHolder for loading BMP, JPG, etc. Maineville OH
- Extending CPictureHolder for loading BMP, JPG, etc. Mansfield OH
- Extending CPictureHolder for loading BMP, JPG, etc. Maple Heights OH
- Extending CPictureHolder for loading BMP, JPG, etc. Marion OH
- Extending CPictureHolder for loading BMP, JPG, etc. Marysville OH
- Extending CPictureHolder for loading BMP, JPG, etc. Mason OH
- Extending CPictureHolder for loading BMP, JPG, etc. Massillon OH
- Extending CPictureHolder for loading BMP, JPG, etc. Maumee OH
- Extending CPictureHolder for loading BMP, JPG, etc. Medina OH
- Extending CPictureHolder for loading BMP, JPG, etc. Mentor OH
- Extending CPictureHolder for loading BMP, JPG, etc. Miamisburg OH
- Extending CPictureHolder for loading BMP, JPG, etc. Middletown OH
- Extending CPictureHolder for loading BMP, JPG, etc. Milford OH
- Extending CPictureHolder for loading BMP, JPG, etc. Millersburg OH
- Extending CPictureHolder for loading BMP, JPG, etc. Mount Vernon OH
- Extending CPictureHolder for loading BMP, JPG, etc. Napoleon OH
- Extending CPictureHolder for loading BMP, JPG, etc. New Carlisle OH
- Extending CPictureHolder for loading BMP, JPG, etc. New Philadelphia OH
- Extending CPictureHolder for loading BMP, JPG, etc. Newark OH
- Extending CPictureHolder for loading BMP, JPG, etc. North Olmsted OH
- Extending CPictureHolder for loading BMP, JPG, etc. North Ridgeville OH
- Extending CPictureHolder for loading BMP, JPG, etc. North Royalton OH
- Extending CPictureHolder for loading BMP, JPG, etc. Olmsted Falls OH
- Extending CPictureHolder for loading BMP, JPG, etc. Oregon OH
- Extending CPictureHolder for loading BMP, JPG, etc. Oxford OH
- Extending CPictureHolder for loading BMP, JPG, etc. Painesville OH
- Extending CPictureHolder for loading BMP, JPG, etc. Pataskala OH
- Extending CPictureHolder for loading BMP, JPG, etc. Perrysburg OH
- Extending CPictureHolder for loading BMP, JPG, etc. Pickerington OH
- Extending CPictureHolder for loading BMP, JPG, etc. Piqua OH
- Extending CPictureHolder for loading BMP, JPG, etc. Portsmouth OH
- Extending CPictureHolder for loading BMP, JPG, etc. Ravenna OH
- Extending CPictureHolder for loading BMP, JPG, etc. Reynoldsburg OH
- Extending CPictureHolder for loading BMP, JPG, etc. Rocky River OH
- Extending CPictureHolder for loading BMP, JPG, etc. Salem OH
- Extending CPictureHolder for loading BMP, JPG, etc. Sandusky OH
- Extending CPictureHolder for loading BMP, JPG, etc. Sidney OH
- Extending CPictureHolder for loading BMP, JPG, etc. Solon OH
- Extending CPictureHolder for loading BMP, JPG, etc. Springboro OH
- Extending CPictureHolder for loading BMP, JPG, etc. Springfield OH
- Extending CPictureHolder for loading BMP, JPG, etc. Steubenville OH
- Extending CPictureHolder for loading BMP, JPG, etc. Stow OH
- Extending CPictureHolder for loading BMP, JPG, etc. Strongsville OH
- Extending CPictureHolder for loading BMP, JPG, etc. Sylvania OH
- Extending CPictureHolder for loading BMP, JPG, etc. Tallmadge OH
- Extending CPictureHolder for loading BMP, JPG, etc. Tiffin OH
- Extending CPictureHolder for loading BMP, JPG, etc. Tipp City OH
- Extending CPictureHolder for loading BMP, JPG, etc. Toledo OH
- Extending CPictureHolder for loading BMP, JPG, etc. Troy OH
- Extending CPictureHolder for loading BMP, JPG, etc. Twinsburg OH
- Extending CPictureHolder for loading BMP, JPG, etc. Van Wert OH
- Extending CPictureHolder for loading BMP, JPG, etc. Vandalia OH
- Extending CPictureHolder for loading BMP, JPG, etc. Vermilion OH
- Extending CPictureHolder for loading BMP, JPG, etc. Wadsworth OH
- Extending CPictureHolder for loading BMP, JPG, etc. Wapakoneta OH
- Extending CPictureHolder for loading BMP, JPG, etc. Warren OH
- Extending CPictureHolder for loading BMP, JPG, etc. Washington Court House OH
- Extending CPictureHolder for loading BMP, JPG, etc. West Chester OH
- Extending CPictureHolder for loading BMP, JPG, etc. Westerville OH
- Extending CPictureHolder for loading BMP, JPG, etc. Westlake OH
- Extending CPictureHolder for loading BMP, JPG, etc. Wickliffe OH
- Extending CPictureHolder for loading BMP, JPG, etc. Willoughby OH
- Extending CPictureHolder for loading BMP, JPG, etc. Wooster OH
- Extending CPictureHolder for loading BMP, JPG, etc. Xenia OH
- Extending CPictureHolder for loading BMP, JPG, etc. Youngstown OH
- Extending CPictureHolder for loading BMP, JPG, etc. Zanesville OH
Related Local Events
NAIAS 2010
Dates: 1/15/2010 - 1/15/2010
Location: COBO Convention Center
Detroit, OH
View Details

Forge Fair 2010
Dates: 4/20/2010 - 4/22/2010
Location: Cincinnati Convention Center
Cincinnati, OH
View Details

Earth Science Day
Dates: 10/17/2009 - 10/17/2009
Location: Cleveland Museum of Natural History
Cleveland, OH
View Details

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