View Full Version : C++ WinAPI


RubiksMaster
04-03-07, 11:37 PM
Hey, if anyone here is good with C++, I need some urgent help!

I am trying to make a basic GUI to run in Windows. I'm using Visual Studio 2005, by the way.

So yeah, I can get an empty window to show up on screen, but I can't for the life of me figure out how to add any sort of components (e.g. buttons, comboboxes, text areas, etc). I've tried searching google, but I can't seem to find anything that works, or is understandable.

If anyone here knows how to add these components, I would really appreciate some help.

leopold99
04-04-07, 12:11 AM
try searching this site:
http://msdn2.microsoft.com/en-us/default.aspx

edit
also try here:
http://msdn2.microsoft.com/en-us/library/1370z17c(VS.80).aspx

leopold99
04-04-07, 01:54 AM
i scrounged up my copy of visual c++ 6.0.
if you want i can install it and help you out (maybe)

Zephyr
04-04-07, 02:09 AM
I'm using Visual Studio 2005, by the way.
Any particular reason you aren't using C#?

RubiksMaster
04-04-07, 09:46 AM
Any particular reason you aren't using C#?Because I want to learn how to do it in C++.

Here's an update. I got the forms added to the window, so now it has a table and 3 buttons on it. The problem now is with the listeners. I can't find anywhere that says which messages are generated by button clicks. I also can't figure out how to populate the table with data.

Kunax
04-04-07, 10:48 AM
you make your GUI using resource files, click a bit around there should be a resource editor somewhere with which you can create your GUI and assign the appropriate ID's and such.

Then you do some voodoo c++ stuff, like making a message hook to handle user input and stuff like that in your code, ok i forgot i haven't coded for +5 years(not counting funky 50-100 line progs.)

Kunax
04-04-07, 10:50 AM
oh buy winapi book as a refereance guide or find 1 on the net