Extending CPictureHolder for loading BMP, JPG, etc. Merrillville IN

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

Cyberdynamics
(219) 756-9150
9111 Broadway
Merrillville, IN
Analytech Consulting Resources Inc
(219) 736-6556
9111 Broadway
Merrillville, IN
Strouse Software Systems
(812) 428-7669
2145 Bergdolt Rd
Evansville, IN
Network Design & Managment Group Fax
(219) 362-9097
4940 N Range Rd
Laporte, IN
Aldrin Eric
(219) 922-8511
9131 Spring St
Highland, IN
Computer Management Grp
(219) 736-4450
8252 Virginia St
Merrillville, IN
Business Systems Integrators Inc
(219) 738-1105
8762 Louisiana St Ste E
Merrillville, IN
Cornerstonesolutions
(260) 496-8259
1315 Directors Row Ste 205
Fort Wayne, IN
Healthx.Com
(317) 843-3990
9339 Priority Way West Dr Ste 150
Indianapolis, IN
Pinnacle Solutions Inc
(317) 423-9143
120 E Market St Ste 900
Indianapolis, IN

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

POGEE Systems & Technologies

(708) 267-7635
10448 S. Pulaski Road
Oak Lawn, IL

Related Local Events
BIO - International Convention and Exhibition for Biotechnology
Dates: 5/2/2010 - 5/5/2010
Location: McCormick Place
Chicago, IL
View Details

Virtualization / Consolidation Strategies - Implementation Strategies
Dates: 12/10/2009 - 12/10/2009
Location: The Donald E. Stephens Convention Center
Rosemont, IL
View Details

The CIO Agenda - 2010 and Beyond
Dates: 11/5/2009 - 11/5/2009
Location: The Donald E. Stephens Convention Center
Rosemont, IL
View Details

SuperComm
Dates: 10/21/2009 - 10/23/2009
Location: McCormick Place, Chicago
Chicago, IL
View Details

Information Systems Governance Strategies
Dates: 9/24/2009 - 9/24/2009
Location: The Donald E. Stephens Convention Center
Rosemont, IL
View Details

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