| View previous topic :: View next topic |
| Author |
Message |
Pro-surf Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Dec 2007 Posts: 1415 Location: Under Ur Bed , Moauahauha
|
Posted: Wed Jun 10, 2009 10:30 am Post subject: [Help] C++ - Buttons and Dialogs :( |
|
|
Ok so lately im playing around with kitterz source.
I created couple of "+" buttons which suppost to open diffrent dialogs to set the setting
I need someone who can teach me how to define those stuff
like
Click BUTTON1 - > open DIALOG2 (which holds autopot setting in this case)
Thanks
_________________
ProsTrain VIP |..........| - 80% Done im close to the finish line
 |
|
| Back to top |
|
 |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
Posted: Wed Jun 10, 2009 11:56 am Post subject: |
|
|
huh?
so what you're saying is that you'd like to open child window of the main trainer?!
if so then you create it same as creating window
register the new class of the new window and create the window using CreateWindowEx
and you have to write another window procedure since it's a window
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Wed Jun 10, 2009 11:56 am Post subject: Re: [Help] C++ - Buttons and Dialogs :( |
|
|
| Pro-surf wrote: | Ok so lately im playing around with kitterz source.
I created couple of "+" buttons which suppost to open diffrent dialogs to set the setting
I need someone who can teach me how to define those stuff
like
Click BUTTON1 - > open DIALOG2 (which holds autopot setting in this case)
Thanks  |
visual or win32?
_________________
|
|
| Back to top |
|
 |
Pro-surf Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Dec 2007 Posts: 1415 Location: Under Ur Bed , Moauahauha
|
Posted: Wed Jun 10, 2009 12:10 pm Post subject: |
|
|
win32
_________________
ProsTrain VIP |..........| - 80% Done im close to the finish line
 |
|
| Back to top |
|
 |
BirdsEye Advanced Cheater
Reputation: 0
Joined: 05 Apr 2008 Posts: 94
|
Posted: Wed Jun 10, 2009 1:58 pm Post subject: |
|
|
| Assuming you have already gotten a basic window, in your procedure, you would respond to WM_COMMAND and check if your button is equal to your to WPARAM variable. If it is, then use the DialogBox function to create your resource.
|
|
| Back to top |
|
 |
talkerzero Grandmaster Cheater
Reputation: 1
Joined: 24 Jul 2008 Posts: 560 Location: California
|
Posted: Wed Jun 10, 2009 5:04 pm Post subject: |
|
|
Note that when using DialogBox, you have to use the same HINSTANCE you used to create the first dialog box, so at the top you should use:
..and in WinMain/DllMain/etc. use:
|
|
| Back to top |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Thu Jun 11, 2009 11:01 am Post subject: |
|
|
| colour0xFFA500 wrote: | Note that when using DialogBox, you have to use the same HINSTANCE you used to create the first dialog box, so at the top you should use:
..and in WinMain/DllMain/etc. use:
|
Or you could pass it off as a parameter.
|
|
| Back to top |
|
 |
|