Extending CPictureHolder for loading BMP, JPG, etc. Belle Vernon PA

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

DIVIUM, LLC
724-858-1422
645 E Pittsburgh St.
Greensburgh, PA
Medi Group Ltd
(610) 666-1955
1308 Egypt Rd
Collegeville, PA
Accenture
(717) 238-5518
411 Walnut St
Harrisburg, PA
Ccg Integrated Business Solutions Inc
(610) 642-4320
433 Haverford Rd
Wynnewood, PA
Zwicker Services Inc
(215) 885-3940
Glenside, PA
Duerr Business Solutions Inc
412- 854-5876
71 Mcmurray Rd
Pittsburgh, PA
A V A R
(717) 394-1525
2135 Noll Dr Ste A
Lancaster, PA
Internet Business Pages
(412) 242-5245
Pittsburgh, PA
Slogick Computer Consultants
(724) 239-2170
231 James St
Bentleyville, PA
Shopping Network Two Thousand
(610) 361-8226
Glen Mills, PA

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

Duerr Business Solutions Inc

412- 854-5876
71 Mcmurray Rd
Pittsburgh, PA

Related Local Event
Tech U: Excel
Dates: 3/13/2010 - 3/13/2010
Location: PA CareerLink Allegheny West Robinson Plaza Two
Pittsburgh, PA
View Details

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