Extending CPictureHolder for loading BMP, JPG, etc. Kings Mountain NC

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

Olap Partners Inc
(336) 499-4100
3410 Healy Dr
Winston Salem, NC
Cook Consulting Inc
(828) 294-3378
1015 Rolling Green Dr
Newton, NC
Keane Inc
(919) 544-0891
2525 Meridian Pkwy Ste 400
Durham, NC
Earnest & Associates
(336) 272-1241
800 W Smith St
Greensboro, NC
Ciber Inc
(919) 518-0800
5511 Capital Center Dr Ste P130
Raleigh, NC
Charlotte Web Design & Development
(704) 577-8242
Commodore point rd
Lake Wylie, SC
Entrepreneur Business Solutions
(910) 480-9300
3069 Cumberland Rd
Fayetteville, NC
Intergrated Technical Services
(919) 674-0044
2205 Candun Dr Ste E
Apex, NC
High Country Computer Consulting Inc
(828) 963-5236
Boone, NC
Sykes Enterprises Incorporated
(919) 481-0215
Cary, NC

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

Charlotte Web Design & Development

7045778242
Commodore point rd
Lake Wylie, SC
http://www.charlottewebdevelopment.com

Related Local Events
Green Manufacturing Expo-Charlotte
Dates: 4/28/2010 - 4/29/2010
Location: Charlotte Convention Center
Charlotte, NC
View Details

Automation Technology Expo South
Dates: 4/28/2010 - 4/29/2010
Location: Charlotte Convention Center
Charlotte, NC
View Details

Making the Right Decision with Business Intelligence and Analytics, NCTA Emerging Technologies & Trends Series
Dates: 2/10/2010 - 2/10/2010
Location: Belk Action Center
Charlotte, NC
View Details

Technology Summit: Technology + Innovation = Our Future
Dates: 11/18/2009 - 11/18/2009
Location: Hilton Charlotte Center City
Charlotte, NC
View Details

NCTA Congressional Briefing: Featuring U.S. Representatives Sue Myrick and Larry Kissell
Dates: 11/2/2009 - 11/2/2009
Location: Charlotte Chamber - Belk Action Center
Charlotte, NC
View Details

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