Win32 Stuff (Buttons, textboxes, etc)
What is the best way to put textboxes and buttons in a C++ app.?
Are there classes already made to do this stuff in the win32 api? should I use MFC? or should i just make the app in VB/java?
Thanks
BC
- Free Your Mind -
- Free Your Mind -
There are certainly ways to include textboxes and buttons in Dialogs (which you create in a resource script). If you are working with VC++ 6.0 (and probably other compilers but VC++6 is what I use), you can create dialogs with a visual interface allowing you to not bother with the code. If you cannot use these techniques then a good place to go is www.winprog.org/tutorial
which is good and step-by-step. I was recommended it by another user of this site and it is excellent.
To allocate actions to the buttons and textboxes (to stop them from being random entities that achieve nothing) you will need to include them in the relative procedures ( normally the dialog procedure and the main procedure ). You use the ID of the dialog as you would for menus, etc.
>>>>>>>>>>>>>>>>>Ilthigore<<<<<<<<<<<<<<<<<
Personally, I think using win32 api is the best way to put textboxes and buttons on a c++ app. The win32 api is horribly constructed, no classes in it either. But there is every function you need.
About MFC: I find that the framework provided is overly bloated and really isn''t worth the trouble of the extra features it provides. It seems to me that this frameworks is best suited for making office type programs, not necissarily games.
Make the app in whatever language you think will best suit your own and your users'' needs. People may not want to bother with java virtual machines, however, if you would like to target the widest possible amount of users there you have it, etc. VB is just bleh. I''d only use it to spit out something graphically powerful as fast as possible.
Freeware development:
http://www.ruinedsoft.com/
About MFC: I find that the framework provided is overly bloated and really isn''t worth the trouble of the extra features it provides. It seems to me that this frameworks is best suited for making office type programs, not necissarily games.
Make the app in whatever language you think will best suit your own and your users'' needs. People may not want to bother with java virtual machines, however, if you would like to target the widest possible amount of users there you have it, etc. VB is just bleh. I''d only use it to spit out something graphically powerful as fast as possible.
Freeware development:
http://www.ruinedsoft.com/
___________________________Freeware development:ruinedsoft.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement