Displaying JPEG/BMP/GIF images in a dialog using VS.NET C++
-
Hi, I'm using C++ in VS.NET. I've created an dialogbased MFC application. How can I display a jpeg-picture in a dialog (MFC)? I wan't to load the picture from a file stored on my HD or/and from a char* pointing at the picture data. Can I use the Picture Control or something easy like that?
-
Hi, I'm using C++ in VS.NET. I've created an dialogbased MFC application. How can I display a jpeg-picture in a dialog (MFC)? I wan't to load the picture from a file stored on my HD or/and from a char* pointing at the picture data. Can I use the Picture Control or something easy like that?
Good news and bad news: the picture control is for bitmaps only. Sorry. However, you could find a custom control that displays JPEGS and attach it to a CStatic object in your dialog. I couldn't tell you where this control could be found, but i'm sure it's out there somewhere. -- Steve
-
Hi, I'm using C++ in VS.NET. I've created an dialogbased MFC application. How can I display a jpeg-picture in a dialog (MFC)? I wan't to load the picture from a file stored on my HD or/and from a char* pointing at the picture data. Can I use the Picture Control or something easy like that?
You would have to use someone else's control to do that, cximage (an article on code project) seems like the most popular way to do this.