Extending CPictureHolder for loading BMP, JPG, etc. Arlington TX

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

J & D Software
817-451-7337
6028 E Lancaster Ave
Fort Worth, TX
Creative Software Solutions
817-590-9583
3248 Matthews Dr
Fort Worth, TX
K D Software Services As 400
817-589-2225
2518 Gravel Dr
Fort Worth, TX
Emarket Software
817-882-9300
1120 South Fwy
Fort Worth, TX
Data Solutions
817-281-1277
6517 Smithfield RD
Fort Worth, TX
Direct Focus Software
888-626-3379
1205 Lyra Lane
Arlington, TX
Solution Corp
817-457-1950
6001 Bridge St
Fort Worth, TX
Cfs Software
817-595-0550
7477 Airport Fwy
Fort Worth, TX
Barcode Solutions Group
817-834-7226
5208 Airport Fwy
Fort Worth, TX
Cypress Software Systems
817-514-6777
9001 Airport Fwy
Fort Worth, TX

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

Direct Focus Software

888-626-3379
1205 Lyra Lane
Arlington, TX
http://directfocussoftware.com

Related Local Event
Unconventional Gas Conference & Exhibition
Dates: 9/29/2009 - 10/1/2009
Location: Fort Worth Convention Center
Fort Worth, TX
View Details

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