|
The bitmap file usually have a BITMAP header, color palette and actual pixel information (Bits referring the color palette or raw bits if color palette not used). The bitmap header will have the height and width of the image.
Quote:
typedef struct tagBITMAPINFO {
BITMAPINFOHEADER bmiHeader;
RGBQUAD bmiColors[1];
} BITMAPINFO;
Taken the above one from msdn. The Quote: BITMAPINFOHEADER structure has the information you need.
|
|
|
|
|
Hi, I want to just show a powerpoint presentation in my VC++ windows application like a picture box. but I'm new to VC++ and don't know how to do it! please help me!
tanx for any answers!
|
|
|
|
|
See here[^] ... is good sample.
|
|
|
|
|
tnax for your answer,
It seems to be good, but I dont get how it works!!! and it gives an error when I try to insert powerpoint presentation object : "Failed to create the object, Make sure the object entered in system registery"
my powerponit version is 2010 can it make problem?!
|
|
|
|
|
(i upvoted)
Nice question. hope you get an answer.
Watched code never compiles.
|
|
|
|
|
amir700 wrote: show a powerpoint presentation in my VC++ windows application like a picture box
Good question, I agree.
Simple Thanks and Regards,
Brandon T. H.
Programming in C and C++ now, now developing applications, services and drivers (and maybe some kernel modules...psst kernel-mode drivers...psst).
Many of life's failures are people who did not realize how close they were to success when they gave up. - Thomas Edison
|
|
|
|
|
I hope to find best answer by your helps,
thanks my friends!
|
|
|
|
|
Does function with other office components ? Excel, for sample ...
modified 22-Jun-12 14:49pm.
|
|
|
|
|
I am not sure this is possible, but I would like to create a basic dialog that serves as a template for other dialog boxes. Ideally Ill make the first base dialog with the size and properties I want.
At this point I know I could then go into the resource editor and add a copy of it and work on the copies. However, I would like to have the ability to then go back and make a change to the template and have the other dialog boxes take on the changes from the template dialog. This add copy method will not do that.
|
|
|
|
|
My gut reaction with MFC, which is all I know for UI dev, is no. The dialog script file is just plain crude and doesnt have inheritance built in.
|
|
|
|
|
What would you like on your template? ...really will depend on that... but yes, you should be able to do that, only not through the resource editor, you'll have to do it all through code pretty much.
|
|
|
|
|
I figured as much. I was just hoping there was some mechanism I did not know about. I am not sure what all I want, other than for all the dialogs to have the same size and base styles. It may change which will be a PITA if I have to redo a bunch of dialogs because someone decides they want them just a little wider or some new logo graphic of a different size.
|
|
|
|
|
If you're good with MFC or the WinAPI, should be easy to do if the constant is the size and logos. That's easy to accomplish, except when you want to use your template, anything that goes on it will have to be defined programatically rather than though the editor. That will probably only be hard the first time. The somewhat annoying issue with that is the variable text sizes on Win Vista/7 can make drawing things a pain because you have to size anything containing text according to the text size.
|
|
|
|
|
|
DeepT wrote: At this point I know I could then go into the resource editor and add a copy of it and work on the copies. However, I would like to have the ability to then go back and make a change to the template and have the other dialog boxes take on the changes from the template dialog. This add copy method will not do that.
i have done that, however i store my template in XML files and load them on runtime. Little difficult and also no UI is available for same, so you have depends on your Gut feeling and principle of coordinate geometry!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
I have always wanted to design a software with a great and exotic user interface which includes non-standard and uncommon UI components such as tabs, bars, button and so on. Now, I as eager to find a professional toolkit or suite which helps me to quickly design and use marvelous and inventive user interface in another project like VC++ or Qt.
Does anybody know a product like that?
The examples for the software interfaces I really like are Kaspersky Pure 2012, Folder Lock or even Babylon. All these have a different and pretty UI which is not easy to creat when using tools such as Visual Studio or Eclipse.
|
|
|
|
|
Majid Salsal wrote: which is not easy to creat when using tools such as Visual Studio or Eclipse.
You can create anything you like in these development environments; the difficult bit is writing the code.
|
|
|
|
|
Remember that C++ (and any other object oriented language) gives you the ability to subclass, so if there's a UI toolkit that gives you something similar to what you want/need, you can always subclass the components to get a personalized or polished look and feel. For example, in MFC, there are a variety of buttons and toolbars already available, but I've derived my own classes from some of these if I didn't like my options already there. It may be a bit difficult the first time you do it, but it's actually relatively simple after that.
|
|
|
|
|
Don't. All those "fancy" UI are really hard to use for normal users.
Anyway, all those UI are based on CWnd and are all user drawn and handled.
Good luck.
Watched code never compiles.
|
|
|
|
|
Familiarity is always best for the average consumer...
|
|
|
|
|
Majid Salsal wrote: Does anybody know a product like that?
Rule one. Dont make your UI garish. People dont like it.
Rule two. Make it works like everyone else's. That way its predictable, people like that.
And as for a tool, I always liked MFC and its dialogue wizards.
|
|
|
|
|
I hate the wizards, but I do like MFC, it's nice to have consistency in a user interface. You don't want your user spending hours trying to figure out where to configure things rather than doing what the program is intended to do.
|
|
|
|
|
Albert Holguin wrote: I hate the wizards
yeah? I like them. Tying controls and data variables to the on-screen object, for me its really quick coding.
Of course you need to know how to dig into the guts of MFC a bit to make it fly, but it gives me 90% ogf what I want quick. I like it.
As for the rest of your post, 100% agree.
|
|
|
|
|
If you are designing for computer geeks, go ahead, but I would not call that "professional", just geeky.
As pointed out by others,"professional" means user friendly and not necessary flashy.
I think the software industry has accepted certain UI formats, I would not call it standards, and did it because of consumer acceptance, not by some knowledgeable geek fancy.
But whatever floats your boat...
|
|
|
|
|
Whats wrong with using the MFC Feature Pack[^]? It is available with Visual C++ 2008 Service Pack 1 and beyond and most of the cool stuff works with XP and above.
|
|
|
|