Extending CPictureHolder for loading BMP, JPG, etc. North Carolina

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

The Lead Tree
321-206-8283
306 North Rankin Street
Atkinson, NC
StreamLogic Inc.
704-771-1090
3030 Glen Summit Dr.
Charlotte, NC
D P Solutions Inc
336-854-7700
4411 W Market St
Greensboro, NC
Software Design Inc
336-378-0900
1301 Carolina St
Greensboro, NC
Advantec Information Systems LLC
336-275-2832
2007 Yanceyville St
Greensboro, NC
Community Web
336-499-3001
133 Hicks St
Winston-Salem, NC
BuildLinks: Web-based Project Management for Home Builders
888-700-9470
3800 Paramount Parkway, Suite 100
Morrisville, NC
Collabera
(704) 372-7272
212 South Tryon Street
Charlotte, NC
CompuData, Inc
(704) 504-0600
2401 Whitehall Park Drive
Charlotte, NC
Dalcom Consulting
336-851-1802
8 Oak Branch DR
Greensboro, 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

The Lead Tree

321-206-8283
306 North Rankin Street
Atkinson, NC

Related Articles
- Advanced C++/CLI North Carolina
C++/CLI has a number of advanced features that make developing and maintaining applications easier. Discover how these allow types to be moved between assemblies without breaking existing application, allow fast and efficient interoperability between native functions, and make it possible to create functions that take a variable number of parameters while still maintaining type safety.
- Animated Background Banner North Carolina
- Adding Standard Deviation to LINQ North Carolina
- An Active Server Pages Tutorial, Part 2 North Carolina
- Applied Microsoft .NET Framework Programming North Carolina
- .NET Tip North Carolina
- Avoiding Boolean Overload North Carolina
- Automating Repetitive Tasks in Visual Studio North Carolina
- Audio Mixer Control Classes North Carolina
- An Active Server Pages Tutorial, Part 1 North Carolina
Regional Articles
- Extending CPictureHolder for loading BMP, JPG, etc. Albemarle NC
- Extending CPictureHolder for loading BMP, JPG, etc. Apex NC
- Extending CPictureHolder for loading BMP, JPG, etc. Arden NC
- Extending CPictureHolder for loading BMP, JPG, etc. Asheboro NC
- Extending CPictureHolder for loading BMP, JPG, etc. Asheville NC
- Extending CPictureHolder for loading BMP, JPG, etc. Bessemer City NC
- Extending CPictureHolder for loading BMP, JPG, etc. Boone NC
- Extending CPictureHolder for loading BMP, JPG, etc. Brevard NC
- Extending CPictureHolder for loading BMP, JPG, etc. Burlington NC
- Extending CPictureHolder for loading BMP, JPG, etc. Camp Lejeune NC
- Extending CPictureHolder for loading BMP, JPG, etc. Candler NC
- Extending CPictureHolder for loading BMP, JPG, etc. Cary NC
- Extending CPictureHolder for loading BMP, JPG, etc. Chapel Hill NC
- Extending CPictureHolder for loading BMP, JPG, etc. Charlotte NC
- Extending CPictureHolder for loading BMP, JPG, etc. Clayton NC
- Extending CPictureHolder for loading BMP, JPG, etc. Clemmons NC
- Extending CPictureHolder for loading BMP, JPG, etc. Clinton NC
- Extending CPictureHolder for loading BMP, JPG, etc. Concord NC
- Extending CPictureHolder for loading BMP, JPG, etc. Conover NC
- Extending CPictureHolder for loading BMP, JPG, etc. Dunn NC
- Extending CPictureHolder for loading BMP, JPG, etc. Durham NC
- Extending CPictureHolder for loading BMP, JPG, etc. Eden NC
- Extending CPictureHolder for loading BMP, JPG, etc. Elizabeth City NC
- Extending CPictureHolder for loading BMP, JPG, etc. Fayetteville NC
- Extending CPictureHolder for loading BMP, JPG, etc. Forest City NC
- Extending CPictureHolder for loading BMP, JPG, etc. Fort Bragg NC
- Extending CPictureHolder for loading BMP, JPG, etc. Fuquay Varina NC
- Extending CPictureHolder for loading BMP, JPG, etc. Garner NC
- Extending CPictureHolder for loading BMP, JPG, etc. Gastonia NC
- Extending CPictureHolder for loading BMP, JPG, etc. Goldsboro NC
- Extending CPictureHolder for loading BMP, JPG, etc. Granite Falls NC
- Extending CPictureHolder for loading BMP, JPG, etc. Greensboro NC
- Extending CPictureHolder for loading BMP, JPG, etc. Greenville NC
- Extending CPictureHolder for loading BMP, JPG, etc. Havelock NC
- Extending CPictureHolder for loading BMP, JPG, etc. Henderson NC
- Extending CPictureHolder for loading BMP, JPG, etc. Hendersonville NC
- Extending CPictureHolder for loading BMP, JPG, etc. Hickory NC
- Extending CPictureHolder for loading BMP, JPG, etc. High Point NC
- Extending CPictureHolder for loading BMP, JPG, etc. Hillsborough NC
- Extending CPictureHolder for loading BMP, JPG, etc. Hope Mills NC
- Extending CPictureHolder for loading BMP, JPG, etc. Huntersville NC
- Extending CPictureHolder for loading BMP, JPG, etc. Jacksonville NC
- Extending CPictureHolder for loading BMP, JPG, etc. Kannapolis NC
- Extending CPictureHolder for loading BMP, JPG, etc. Kernersville NC
- Extending CPictureHolder for loading BMP, JPG, etc. King NC
- Extending CPictureHolder for loading BMP, JPG, etc. Kings Mountain NC
- Extending CPictureHolder for loading BMP, JPG, etc. Kinston NC
- Extending CPictureHolder for loading BMP, JPG, etc. Knightdale NC
- Extending CPictureHolder for loading BMP, JPG, etc. Laurinburg NC
- Extending CPictureHolder for loading BMP, JPG, etc. Leland NC
- Extending CPictureHolder for loading BMP, JPG, etc. Lenoir NC
- Extending CPictureHolder for loading BMP, JPG, etc. Lexington NC
- Extending CPictureHolder for loading BMP, JPG, etc. Lillington NC
- Extending CPictureHolder for loading BMP, JPG, etc. Lincolnton NC
- Extending CPictureHolder for loading BMP, JPG, etc. Louisburg NC
- Extending CPictureHolder for loading BMP, JPG, etc. Lumberton NC
- Extending CPictureHolder for loading BMP, JPG, etc. Marion NC
- Extending CPictureHolder for loading BMP, JPG, etc. Matthews NC
- Extending CPictureHolder for loading BMP, JPG, etc. Mebane NC
- Extending CPictureHolder for loading BMP, JPG, etc. Mocksville NC
- Extending CPictureHolder for loading BMP, JPG, etc. Monroe NC
- Extending CPictureHolder for loading BMP, JPG, etc. Mooresville NC
- Extending CPictureHolder for loading BMP, JPG, etc. Morganton NC
- Extending CPictureHolder for loading BMP, JPG, etc. Mount Airy NC
- Extending CPictureHolder for loading BMP, JPG, etc. Mount Olive NC
- Extending CPictureHolder for loading BMP, JPG, etc. Murphy NC
- Extending CPictureHolder for loading BMP, JPG, etc. New Bern NC
- Extending CPictureHolder for loading BMP, JPG, etc. North Wilkesboro NC
- Extending CPictureHolder for loading BMP, JPG, etc. Raeford NC
- Extending CPictureHolder for loading BMP, JPG, etc. Raleigh NC
- Extending CPictureHolder for loading BMP, JPG, etc. Reidsville NC
- Extending CPictureHolder for loading BMP, JPG, etc. Roanoke Rapids NC
- Extending CPictureHolder for loading BMP, JPG, etc. Rockingham NC
- Extending CPictureHolder for loading BMP, JPG, etc. Rocky Mount NC
- Extending CPictureHolder for loading BMP, JPG, etc. Roxboro NC
- Extending CPictureHolder for loading BMP, JPG, etc. Rutherfordton NC
- Extending CPictureHolder for loading BMP, JPG, etc. Salisbury NC
- Extending CPictureHolder for loading BMP, JPG, etc. Sanford NC
- Extending CPictureHolder for loading BMP, JPG, etc. Shelby NC
- Extending CPictureHolder for loading BMP, JPG, etc. Siler City NC
- Extending CPictureHolder for loading BMP, JPG, etc. Statesville NC
- Extending CPictureHolder for loading BMP, JPG, etc. Tarboro NC
- Extending CPictureHolder for loading BMP, JPG, etc. Taylorsville NC
- Extending CPictureHolder for loading BMP, JPG, etc. Thomasville NC
- Extending CPictureHolder for loading BMP, JPG, etc. Trinity NC
- Extending CPictureHolder for loading BMP, JPG, etc. Wake Forest NC
- Extending CPictureHolder for loading BMP, JPG, etc. Waxhaw NC
- Extending CPictureHolder for loading BMP, JPG, etc. Waynesville NC
- Extending CPictureHolder for loading BMP, JPG, etc. Weaverville NC
- Extending CPictureHolder for loading BMP, JPG, etc. Wendell NC
- Extending CPictureHolder for loading BMP, JPG, etc. Whiteville NC
- Extending CPictureHolder for loading BMP, JPG, etc. Williamston NC
- Extending CPictureHolder for loading BMP, JPG, etc. Wilmington NC
- Extending CPictureHolder for loading BMP, JPG, etc. Wilson NC
- Extending CPictureHolder for loading BMP, JPG, etc. Winston Salem NC
- Extending CPictureHolder for loading BMP, JPG, etc. Zebulon NC
Related Local Events
Breakfast & Business (PWN)
Dates: 11/24/2009 - 11/24/2009
Location: Durham Chamber
Durham, NC
View Details

Breakfast & Business (PWN)
Dates: 11/24/2009 - 11/24/2009
Location: Durham Chamber
Durham, NC
View Details

North Carolina Legislative Holiday Reception (Govt. Affairs)
Dates: 12/3/2009 - 12/3/2009
Location: Washington Duke Inn & Golf Club
Durham, NC
View Details

North Carolina Legislative Holiday Reception (Govt. Affairs)
Dates: 12/3/2009 - 12/3/2009
Location: Washington Duke Inn & Golf Club
Durham, NC
View Details

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

Rss   Delicious   Digg   Add To My Yahoo   Add To My Google   Bookmark   Search Plugin

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