gif and jpg's in Win32 API

Started by
3 comments, last by differentia 23 years, 7 months ago
How can I read in and display gif and jpg files in my Windows program? I''m not using MFC in any way, so just pure c / c++ please ! Thanks in advance... Gary
Advertisement
Also, is it possible to have a treeview control without MFC and how do I add images to List box controls (again without MFC)?

Pleez?
quote:Original post by differentia

Also, is it possible to have a treeview control without MFC and how do I add images to List box controls (again without MFC)?

Pleez?


Yep, it sure is

If you lookup TreeView under Win32, you will get the answer. I don''t know much MFC, but it will probably work almost the same.
For a listbox with icons, you could try creating a ListView instead. For adding items you''ll need ListView_InsertItem(), and to add images you might want to check out the Imagelist.

There''s a lot to say about these controls, but you''ll need a good Win32 ref/help sooner or later...

Hope this helps a little,
- Bas

quote:Original post by differentia

How can I read in and display gif and jpg files in my Windows program? I''m not using MFC in any way, so just pure c / c++ please !

Thanks in advance...

Gary


I''m sure you can find information about these file formats at WOTSIT.

GA
Visit our homepage: www.rarebyte.de.stGA
Yep... and good luck with the JPG files. They''re scary.

-Ironblayde
Aeon Software
"Your superior intellect is no match for our puny weapons!"

This topic is closed to new replies.

Advertisement