Design Question: Only Bitmap or JPEG ?
-
Hello, i am wondering if vc++ also understands jpeg resources or only bitmaps ? It would be very nice if i can use jpegs for design elements. Or another question: how can i build something like this: http://cdn.last.fm/depth/screenshots/de/software_win.jpg[^] (the left bar with the small image and the menue and the light blue bar in the mid (look at "Saalschutz") Thanks for help.
-
Hello, i am wondering if vc++ also understands jpeg resources or only bitmaps ? It would be very nice if i can use jpegs for design elements. Or another question: how can i build something like this: http://cdn.last.fm/depth/screenshots/de/software_win.jpg[^] (the left bar with the small image and the menue and the light blue bar in the mid (look at "Saalschutz") Thanks for help.
gabbana wrote:
i am wondering if vc++ also understands jpeg resources
GDI's LoadImage() function and GDI+'s Bitmap::FromResource() method both load embedded JPEG BITMAP resources no problem. GIF too. On VS2008: (optional) copy JPEG and/or GIF file to the project's "res" folder Right-click the project's resource (.rc) file in VS resource view Choose "Add Resource" Click "Import..." Find the JPEG and/or GIF files, select them, and click "Open" Save the project and reopen the project's .rc file in the text editor Find the images you've embedded and change the types from "GIF"/"JPG" to "BITMAP" The line(s) should look something like:
IDB_JPEG1 BITMAP "res\\some.JPG"
IDB_GIF1 BITMAP "res\\some.GIF"Now you can use the above mentioned methods to work with the embedded bitmaps, just like a bmp. An alternative method using IStream/IPicture: Load JPEG and (transparant) GIF picture files from a resource in 3 lines code[^] Loading JPEG and GIF pictures[^] Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Hello, i am wondering if vc++ also understands jpeg resources or only bitmaps ? It would be very nice if i can use jpegs for design elements. Or another question: how can i build something like this: http://cdn.last.fm/depth/screenshots/de/software_win.jpg[^] (the left bar with the small image and the menue and the light blue bar in the mid (look at "Saalschutz") Thanks for help.
On the design of the window you can make use of Splitters. About the Saalschutz and the blue background I guess it is a kind of progress bar. You may find a lot of info here in the CP. Take a look into that concepts if they help you.
Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson Rating helpfull answers is nice, but saying thanks can be even nicer.
-
On the design of the window you can make use of Splitters. About the Saalschutz and the blue background I guess it is a kind of progress bar. You may find a lot of info here in the CP. Take a look into that concepts if they help you.
Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson Rating helpfull answers is nice, but saying thanks can be even nicer.
okay, thanks. do you know a good tutorial for creating a complete own gui with win32 ? So i mean owner drawn windows with my own close buttons and so on ? i tried searching "skins" on cp but i only find apis which are easy to use but complicated to understand in the technic.
-
okay, thanks. do you know a good tutorial for creating a complete own gui with win32 ? So i mean owner drawn windows with my own close buttons and so on ? i tried searching "skins" on cp but i only find apis which are easy to use but complicated to understand in the technic.
I am not sure what you are asking for, but actually the VC has lot of functionality and there are a lot of owner draw controls in the CP, the thing is you have to limit the search to what you need API, MFC and so on. If you want to create your own GUI, I recommend you to make different test projects, trying one different thing in each one, and when you get what you want in every of them, then put all together. When you have more questions just ask, there will be many people glad to help you if the question wakes up their curiosity or the question is well formulated. Sorry, but about the manual... there are so many factors involve that I can not give you a concrete answer
Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson Rating helpfull answers is nice, but saying thanks can be even nicer.