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 


[MSVC++ 2008] GUI Buttons

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ihmed43
Expert Cheater
Reputation: 0

Joined: 04 May 2007
Posts: 150

PostPosted: Wed Jun 17, 2009 8:01 pm    Post subject: [MSVC++ 2008] GUI Buttons Reply with quote

last year i used to know how to add buttons on GUI's but i forgot how (cuz i didnt learn the language)

but now i kow some of the language and i forgot how to add buttons anyone want to explain how to add stuff like buttons and labels??

_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Jun 17, 2009 8:18 pm    Post subject: Reply with quote

CreateWindowEx

or just do it visually on a dialog.


Go google ResEdit, it will generate the code for you, as well as the dialogs if you want to use those instead.
Back to top
View user's profile Send private message
ihmed43
Expert Cheater
Reputation: 0

Joined: 04 May 2007
Posts: 150

PostPosted: Wed Jun 17, 2009 8:30 pm    Post subject: Reply with quote

can u give me a more thurough explanation?
_________________
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Wed Jun 17, 2009 8:50 pm    Post subject: Reply with quote

Windows Controls

CreateWindowEx

_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Jun 17, 2009 8:52 pm    Post subject: Reply with quote

Controls (like buttons) are windows.

If you want to create your window and everything yourself, you'll be using CreateWindowEx.

What you create is determined by the class you specify with CreateWindowEx. http://msdn.microsoft.com/en-us/library/ms633574%28VS.85%29.aspx1



You can also use Dialogs resources to create your interface. Dialogs are windows as well, but the system will handle the init of all the controls, the message pump, etc.
Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Thu Jun 18, 2009 4:18 am    Post subject: Reply with quote

QPushButton *pb = new QPushButton(this);

:)
Back to top
View user's profile Send private message
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

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

Jani wrote:
QPushButton *pb = new QPushButton(this);

Smile

Qt is gayyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy.
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