Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem about sprite animation Pin
26-Mar-01 11:00
suss26-Mar-01 11:00 
GeneralRe: Problem about sprite animation Pin
Christian Graus23-Mar-01 9:28
protectorChristian Graus23-Mar-01 9:28 
GeneralClose a foreign window Pin
22-Mar-01 22:15
suss22-Mar-01 22:15 
GeneralRe: Close a foreign window Pin
Christian Graus23-Mar-01 9:33
protectorChristian Graus23-Mar-01 9:33 
GeneralWorking with installed email client Pin
22-Mar-01 21:30
suss22-Mar-01 21:30 
GeneralRe: Working with installed email client Pin
Erik Thompson23-Mar-01 7:33
sitebuilderErik Thompson23-Mar-01 7:33 
GeneralURGENT - ListView items sort example Pin
Deian22-Mar-01 21:01
Deian22-Mar-01 21:01 
QuestionWhat's up with MFC and GIF/JPG? Pin
Matt Philmon22-Mar-01 18:27
Matt Philmon22-Mar-01 18:27 
OK, bitmaps are just dandy. Most of the time I'm plenty happy enough with them and the standard microsoft static control can be used nicely and easily for drawing a contained bitmap or icon. WHY NOT GIF/JPG?

I'm working on an application that has about 20 pictures I have to display at one point or another. They're all pretty much the same size and all 256 color. Anyway, bitmaps are just too big and adding this in to the resources pushes my exectuable (statically linking MFC) up to almost 5 MEG! A LOT of that is the bitmaps. I really would rather use GIF's. They're a lot smaller and since they can have transparent backgrounds it's easy to have them drawn transparent. It's funny but this is really the first time I've run into this and was actually amazed that it was even an issue.

Where is the MFC standard control for displaying GIF/JPG?!? I MUCH prefer C++ over Visual Basic but the basic picture control for VB does GIF/JPG just fine... easily. Why is this not part of MFC? Does someone know of a simple control I could use without re-inventing the wheel? How about a more advanced version that would resize the picture when I resize the control? How about one that includes "hot spots" where I could pop up messages or do "something" when they roll over it with the mouse?

Make me a believer again that MFC is better than VB... (I'm knocking MFC. NOT C++/COM/ATL/STL, yada yada yada)

Thanks,
Matt Philmon
AnswerRe: What's up with MFC and GIF/JPG? Pin
Michael Dunn22-Mar-01 18:47
sitebuilderMichael Dunn22-Mar-01 18:47 
GeneralRe: What's up with MFC and GIF/JPG? Pin
23-Mar-01 8:47
suss23-Mar-01 8:47 
AnswerRe: What's up with MFC and GIF/JPG? Pin
Christian Graus23-Mar-01 8:58
protectorChristian Graus23-Mar-01 8:58 
AnswerRe: What's up with MFC and GIF/JPG? Pin
Christian Graus23-Mar-01 9:00
protectorChristian Graus23-Mar-01 9:00 
GeneralRe: What's up with MFC and GIF/JPG? Pin
l a u r e n24-Mar-01 4:59
l a u r e n24-Mar-01 4:59 
GeneralRe: What's up with MFC and GIF/JPG? Pin
Christian Graus24-Mar-01 10:15
protectorChristian Graus24-Mar-01 10:15 
GeneralSetting Text Color for a Control which is Not Enabled Pin
22-Mar-01 6:26
suss22-Mar-01 6:26 
GeneralRe: Setting Text Color for a Control which is Not Enabled Pin
Henry Jacobs22-Mar-01 7:14
Henry Jacobs22-Mar-01 7:14 
GeneralRe: Setting Text Color for a Control which is Not Enabled Pin
23-Mar-01 0:39
suss23-Mar-01 0:39 
GeneralLosing Resources Pin
Brian Heath22-Mar-01 5:36
Brian Heath22-Mar-01 5:36 
GeneralRe: Losing Resources Pin
Tim Deveaux22-Mar-01 13:01
Tim Deveaux22-Mar-01 13:01 
Generaltry/catch Pin
Hadi Rezaee22-Mar-01 4:45
Hadi Rezaee22-Mar-01 4:45 
GeneralRe: try/catch Pin
Christian Graus22-Mar-01 11:32
protectorChristian Graus22-Mar-01 11:32 
GeneralRe: try/catch Pin
Tim Deveaux22-Mar-01 13:07
Tim Deveaux22-Mar-01 13:07 
GeneralRe: try/catch Pin
Tim Deveaux22-Mar-01 13:21
Tim Deveaux22-Mar-01 13:21 
GeneralRe: try/catch Pin
Erik Funkenbusch22-Mar-01 14:24
Erik Funkenbusch22-Mar-01 14:24 
GeneralStatus bar question ... Pin
Hadi Rezaee22-Mar-01 4:44
Hadi Rezaee22-Mar-01 4:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.