Extending CPictureHolder for loading BMP, JPG, etc. Norwich CT

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

Computer Gurus Inc
(860) 887-7100
140 Washington St
Norwich, CT
Universal Inc
(203) 356-1122
800 Summer St
Stamford, CT
Advanced Corporate Networking
(203) 881-9495
60 Silvermine Rd
Seymour, CT
Imperium Llc
(203) 221-1500
164 Kings Hwy N
Westport, CT
Easy Micro Inc
(203) 754-3279
755 Wolcott St
Waterbury, CT
Media Lantern Inc,
(800) 705-1213
236 State Street
New London, CT
Alden Novak & Dodd Inc
(860) 285-8198
Windsor, CT
Hitchcock Contemporary Staffing Llc
(860) 257-7343
465 Silas Deane Hwy
Wethersfield, CT
Microsystems Integration Inc
(860) 599-1727
181 S Broad St
Pawcatuck, CT
Destiny Corp
(860) 721-1684
2075 Silas Deane Hwy
Rocky Hill, CT

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

Media Lantern Inc,

(800) 705-1213
236 State Street
New London, CT

Related Local Events
NET Series: Lunch Bunch
Dates: 1/5/2010 - 1/5/2010
Location: Maneeley's Banquet Facility & Catering
South Windsor, CT
View Details

The New Balancing Act
Dates: 11/5/2009 - 11/5/2009
Location: Acton Public Library
Old Saybrook, CT
View Details

The New Balancing Act
Dates: 11/3/2009 - 11/3/2009
Location: Estuary Council of Seniors
Old Saybrook, CT
View Details

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