4

So far, I've been able to create a window in C, and add a button and edit box to that window. But, where can I find an exhaustive list of the system classes for all the form controls? I can't remember where I found BUTTON and EDIT--is there a LABEL? LISTBOX? CHECKBOX? COMBOBOX? etc.

Then, how would I use those built in windows functions...I think they're called common controls? Like open a file, save as, print, etc.

4 Answers 4

10

You will go insane if you try to write raw Win32 code with C. If you can use C++, I highly suggest using Qt, if not, use Gtk.

Sign up to request clarification or add additional context in comments.

3 Comments

Your answer is predicated on only sane people trying to raw Win32 code (otherwise it would be impossible to go insane). I would say the opposite is much more likely. Maybe a better statement would be "You will be insane if you try to write raw Win32 code with C". :)
@JaredPar: I guess I must be insane then; I've tried it before (it's not much fun...)
@Zifre, I haven't had the pleasure of doing it much myself but I've code reviewed some rather large features that did and it was ... challenging.
4

Here you are: they are on MSDN.

But I agree with Zifre that you better use a gui-framework for stuff like this.
There are more like these, e.g. MFC or WTL.

1 Comment

huh, that whole section was missing from my copy of MSDN. Oh well.
4

Some people like things pure

stromcode zetcode forgers and heck if you're really feeling crazy, win32 in assembly

4 Comments

win32 in assembly: masochism at its purest
one day, I will write a full-scale win32 application in assembly. It's going to be incredible. Just you wait. @boboboetc, thanks for the links
@CarsonMyers, where is it now?
@DesmondGold after thirteen years of constant work I finally have a working popup window
1

For the open dialogs and so on you want the Common Dialogs section -- http://msdn.microsoft.com/en-us/library/ms645524(VS.85).aspx.

Whilst on the subject of Win32, if you're using the file dialogs and therefore file names you may also find the shell functions (http://msdn.microsoft.com/en-us/library/bb776426(VS.85).aspx) handy -- in particular, the PathXXX ones. I wish I'd known about these when I was getting started.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.