Extending CPictureHolder for loading BMP, JPG, etc. Henderson NV

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

Eleks, Inc.
(702)4334779
2408 Doherty Way
Henderson, NV
Mika Tech Services
(702)5688617
1881 April Mist St
Henderson, NV
Janalent
(888)2904870
3291 E Warm Springs Rd Ste 300
Las Vegas, NV
Results Technologies
(702)2328621
3720 Waynesvill St
Las Vegas, NV
US Computer Consulting Corp.
(702)5534884
2850 Horizon Ridge Pkwy Ste 200
Henderson, NV
RetailSystems, Inc.
(702)6170427
346 Pleasant Summit Dr
Henderson, NV
Technology Support Center, Inc.
(702)6104470
631 N Stephanie St Ste 409
Henderson, NV
IT Dev, Inc.
(888)3330477
3365 E Flamingo Rd Ste 5
Henderson, NV
Rentex Inc
(800)3044819
3585 E Patrick Ln Ste 1200
Las Vegas, NV
P.O. Interests, Inc.
(702)8963822
2628 Langford Ave
Las Vegas, NV

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

RetailSystems, Inc.

(702)6170427
346 Pleasant Summit Dr
Henderson, NV

Related Local Events
2010 7th IEEE Consumer Communications and Networking Conference (CCNC)
Dates: 1/10/2010 - 1/12/2010
Location: Harrahs Las Vegas Hotel and Casino
Las Vegas, NV
View Details

POWER-GEN International 2009
Dates: 12/8/2009 - 12/10/2009
Location: Las Vegas Convention Center
Las Vegas, NV
View Details

Mobile Business Expo
Dates: 11/16/2009 - 11/20/2009
Location: Mandalay Bay Resort & Casino Convention Center
Las Vegas, NV
View Details

International Telemetering Conference
Dates: 10/26/2009 - 10/29/2009
Location: Riviera Hotel & Conference Center, Las Vegas
Las Vegas, NV
View Details

FABTECH INTERNATIONAL & AWS WELDING SHOW 2009
Dates: 10/1/2009 - 10/1/2009
Location: Las Vegas Convention Center
Las Vegas, NV
View Details

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