Extending CPictureHolder for loading BMP, JPG, etc. Albany NY

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

Keane Inc
(518) 432-3209
18 Corporate Woods Blvd Ste 43
Albany, NY
Softtek Integration Systems Inc
(518) 464-9344
1500 Central Ave
Albany, NY
Comsys Technical Svcs Inc
(518) 458-6145
125 Wolf Rd
Albany, NY
I Mg
(518) 482-0558
8 Automation Ln
Albany, NY
Brainstorm-Micro
(518) 433-1250
11 Pruyn St
Albany, NY
CompareTechProviders.com
518-207-3445
5 Washington Place
Troy, NY
Computer Visions
(518) 437-1600
16 Corporate Woods
Albany, NY
T I M Formation Inc
(518) 456-6211
1913 Central Ave Ste 1
Albany, NY
Cgi-Ams
(518) 218-7700
100 Great Oaks Blvd
Albany, NY
Lauren Group Llc the
(518) 453-1635
98 Wolf Tcby Rd
Albany, NY

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

CompareTechProviders.com

518-207-3445
5 Washington Place
Troy, NY
http://CompareTechProviders.com

Review and compare providers of business essential software solutions. Request information, pricing and demos from multiple providers. Make the right choice for your business.

Related Local Events
Early Technologies Day
Dates: 4/10/2010 - 4/10/2010
Location: Iroquois Indian Museum
Howes Cave, NY
View Details

10th Annual SmartStart UNYTECH Venture Forum
Dates: 5/17/2010 - 5/18/2010
Location: Center for Economic Growth
Albany, NY
View Details

Itsy, Bitsy, Teeny, Weenie
Dates: 12/30/2009 - 12/30/2009
Location: The Children's Museum of Science and Technology
Troy, NY
View Details

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