Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Help] C++ - Buttons and Dialogs :(

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
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

PostPosted: Wed Jun 10, 2009 10:30 am    Post subject: [Help] C++ - Buttons and Dialogs :( Reply with quote

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 Smile

_________________
ProsTrain VIP |..........| - 80% Done Smile im close to the finish line Smile
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Wed Jun 10, 2009 11:56 am    Post subject: Reply with quote

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 Surprised
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Wed Jun 10, 2009 11:56 am    Post subject: Re: [Help] C++ - Buttons and Dialogs :( Reply with quote

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 Smile


visual or win32?

_________________
Back to top
View user's profile Send private message
Pro-surf
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Dec 2007
Posts: 1415
Location: Under Ur Bed , Moauahauha

PostPosted: Wed Jun 10, 2009 12:10 pm    Post subject: Reply with quote

win32
_________________
ProsTrain VIP |..........| - 80% Done Smile im close to the finish line Smile
Back to top
View user's profile Send private message
BirdsEye
Advanced Cheater
Reputation: 0

Joined: 05 Apr 2008
Posts: 94

PostPosted: Wed Jun 10, 2009 1:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
talkerzero
Grandmaster Cheater
Reputation: 1

Joined: 24 Jul 2008
Posts: 560
Location: California

PostPosted: Wed Jun 10, 2009 5:04 pm    Post subject: Reply with quote

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:
Code:
HINSTANCE hInst;


..and in WinMain/DllMain/etc. use:
Code:
hInst = hInstance;
Back to top
View user's profile Send private message Visit poster's website
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Thu Jun 11, 2009 11:01 am    Post subject: Reply with quote

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:
Code:
HINSTANCE hInst;


..and in WinMain/DllMain/etc. use:
Code:
hInst = hInstance;


Or you could pass it off as a parameter.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites