| View previous topic :: View next topic |
| Author |
Message |
WafflesFTW Expert Cheater
Reputation: 0
Joined: 21 Mar 2008 Posts: 131
|
Posted: Sun Aug 24, 2008 8:33 pm Post subject: C++ GUI Creation (Win32 API) |
|
|
| Well, I know how to create a GUI with the whole dialog resource spiel and would like to move on to CreateWindow. However, how does one sanely create an app with many windows using CreateWindow AND most importantly get the coordinates and stuff for each checkbox/menu. I honestly think the coordinate stuff is the killer. I have no idea where to start wiht that. I'm sure there has to be an easier way and to retain win32 speed.
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sun Aug 24, 2008 8:45 pm Post subject: |
|
|
| ResEdit
|
|
| Back to top |
|
 |
WafflesFTW Expert Cheater
Reputation: 0
Joined: 21 Mar 2008 Posts: 131
|
Posted: Sun Aug 24, 2008 8:54 pm Post subject: |
|
|
| ResEdit only works for resources. I'm talking about actual windows, not dialogs. I already have resedit.
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sun Aug 24, 2008 8:58 pm Post subject: |
|
|
| WafflesFTW wrote: | | ResEdit only works for resources. I'm talking about actual windows, not dialogs. I already have resedit. |
negative
http://www.resedit.net/
|
|
| Back to top |
|
 |
WafflesFTW Expert Cheater
Reputation: 0
Joined: 21 Mar 2008 Posts: 131
|
Posted: Sun Aug 24, 2008 9:01 pm Post subject: |
|
|
| Could you explain how to use it? I never could figure it out. Thank you for your time and help.
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sun Aug 24, 2008 9:04 pm Post subject: |
|
|
| File -> Code preview
|
|
| Back to top |
|
 |
WafflesFTW Expert Cheater
Reputation: 0
Joined: 21 Mar 2008 Posts: 131
|
Posted: Sun Aug 24, 2008 9:06 pm Post subject: |
|
|
| How do you add checkboxes and stuff to it though?
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sun Aug 24, 2008 9:06 pm Post subject: |
|
|
| The same way you add anything else
|
|
| Back to top |
|
 |
WafflesFTW Expert Cheater
Reputation: 0
Joined: 21 Mar 2008 Posts: 131
|
Posted: Sun Aug 24, 2008 9:07 pm Post subject: |
|
|
| I don't know how to add anything else.. I can only add like menus and dialogs and stuff.
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sun Aug 24, 2008 9:27 pm Post subject: |
|
|
| exactly, create a dialog.
|
|
| Back to top |
|
 |
WafflesFTW Expert Cheater
Reputation: 0
Joined: 21 Mar 2008 Posts: 131
|
Posted: Sun Aug 24, 2008 9:29 pm Post subject: |
|
|
| Yeah, but I'm trying to get away from dialogs. I already know how to make them. I want to learn how to code with CreateWindow since it is more versatile.
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Sun Aug 24, 2008 9:39 pm Post subject: |
|
|
I made this for a friend.
Its basically how to create windows in Win32 API. I Explained a lot in there.
Hope it helps.
_________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sun Aug 24, 2008 9:44 pm Post subject: |
|
|
| WafflesFTW wrote: | | Yeah, but I'm trying to get away from dialogs. I already know how to make them. I want to learn how to code with CreateWindow since it is more versatile. |
IT GENERATES THE CODE FROM THE DIALOG.
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Sun Aug 24, 2008 10:18 pm Post subject: |
|
|
| slovach wrote: | | WafflesFTW wrote: | | Yeah, but I'm trying to get away from dialogs. I already know how to make them. I want to learn how to code with CreateWindow since it is more versatile. |
IT GENERATES THE CODE FROM THE DIALOG. |
If you do File -> Export as C then yes, it will do that, but i still recommend doing it yourself. The auto-generated source is messy and is shitty all together... It's just the lazy way out.
_________________
|
|
| Back to top |
|
 |
WafflesFTW Expert Cheater
Reputation: 0
Joined: 21 Mar 2008 Posts: 131
|
Posted: Mon Aug 25, 2008 6:37 am Post subject: |
|
|
| Thanks both of you. Ill use ResEdit for the coordinates and planning, and will actually code the thing on my own, with the help of the template.
|
|
| Back to top |
|
 |
|