Creating a Window with Drop-Down boxes

I'm very new to C++ (Started today. :D), and have just been messing around with simple functions. I've made six separate console applications, each converting from one form of temperature to another, (K to C, K to F, C to K, C to F, F to C, F to K) and all the math checks out great. I'm trying to move to the next phase, and thats creating a Window for the application to run from. I've found the lack of reputable tutorials on this kinda surprising, and I've had to use a template to get as far as I am now:
http://img571.imageshack.us/img571/2802/capturepcv.png
I'm alright with the lack of menus and everything, but I can't for the life of me find a tutorial that allows me to add things to the window, let alone add drop-boxes.

I'm hoping to have a final product similar to this:
http://a.imageshack.us/img175/3311/capturebgh.png

The text box under "Convert from" is where the variable would go. And the drop box next to it is where the user would say either, "Celsius", "Fahrenheit", or "Kelvin". Then the "Convert to" box would have the output temperature, and depending on the combination of the two types of temperature, it would choose one of the six codes, and the answer would go in the box marked, "Answer"

Any help is much appreciated.

EDIT: I need help with almost everything, except for the initial window, I will continue to search for tutorials though.
Last edited on
What operating system are you using? if its windows use ms visual c++ which i think has a wysiwyg way of creating windows however if your going for cross platform there are options like Qt, WxWidgets, Gtk+ and several others however. looking into it though i personally like wxWidgets which is just a library that you include in your code. *HOWEVER note that i have no experience yet with any of the above libraries or development environments*. but i will soon be looking into WxWidgets for my cross platform program.
Windows 7 64 bit and I am already using Visual C++ Express, but I have literally no idea how to get the results I specified in my OP
Last edited on
sry man wish i could help you out but ive never actually used ms visual c++. however i found this with a google search

http://msdn.microsoft.com/en-us/library/ff468919%28v=VS.85%29.aspx

which seems to have allot of information about creating windows and different things you can do

with them. hope this helps i always found that google is your best friend

**edit** trying searching for things involving creating windows using the windows api
Last edited on
You will need to learn the Win32 API.

It is not all that complicated once you understand it, but learning it can be a daunting task at first(speaking from experience). I strongly recommend that you use the language for a week or two before you attempt to learn the Win32 API.

I know console applications are rather boring, but stick with them for now as it abstracts the complexities of handling windows, and allows you to focus on the C++ code alone.

When your ready, go here: www.winprog.org
Topic archived. No new replies allowed.