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 


[WinApi C++]Transparent / Coloured ~ Buttons/Checkboxes/Etc.

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

Joined: 09 Jul 2006
Posts: 762
Location: Poland.

PostPosted: Wed Feb 18, 2009 10:22 am    Post subject: [WinApi C++]Transparent / Coloured ~ Buttons/Checkboxes/Etc. Reply with quote

mhm i want to make my checkbox transparent or change checkbox Text colour , i was looking for it in google but nothing in C++ found Rolling Eyes

lets have that button:

Code:
g_CheckBox1 = CreateWindowEx(0, "BUTTON", "BleBle Text", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX, 15, 20, 85, 15, hwnd, NULL, hThisInstance, NULL);
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Wed Feb 18, 2009 2:11 pm    Post subject: Reply with quote

Look like 5 topics down. The one about changing button background. Use the link I posted in there.
_________________
Back to top
View user's profile Send private message
Wiw3K
Grandmaster Cheater
Reputation: 0

Joined: 09 Jul 2006
Posts: 762
Location: Poland.

PostPosted: Thu Feb 19, 2009 1:36 am    Post subject: Reply with quote

mhm ok so

Code:
     WM_CTLCOLORBTN:
              g_CheckBox1 = CreateSolidBrush (RGB(61, 67, 113)) ;
              return (LRESULT) g_CheckBox1 ;


should work ? Confused

---edit---
errors...
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Thu Feb 19, 2009 6:15 am    Post subject: Reply with quote

nooooooo. That is a message that is sent via SendMessage

Get the handle of your button (GetDlgItem)
SendMessage the message with the proper wide and long params (get them off of msdn) walla

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

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Thu Feb 19, 2009 6:53 am    Post subject: Reply with quote

Could someone post pictures of this?
_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Wiw3K
Grandmaster Cheater
Reputation: 0

Joined: 09 Jul 2006
Posts: 762
Location: Poland.

PostPosted: Thu Feb 19, 2009 8:21 am    Post subject: Reply with quote

blankrider wrote:
nooooooo. That is a message that is sent via SendMessage

Get the handle of your button (GetDlgItem)
SendMessage the message with the proper wide and long params (get them off of msdn) walla

dam still dont know what you talking about Shocked
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Thu Feb 19, 2009 9:35 am    Post subject: Reply with quote

If you don't know what he is talking about perhaps you should read a bit more up on Win32? Here's a great tutorial: http://www.winprog.org/tutorial/
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Thu Feb 19, 2009 10:05 am    Post subject: Reply with quote

Rolling Eyes It gives you the DC if the button. So you can just use SetTextColor or SelectObject in the windows procedure upon filtering it. But if you wanna let windows do the default you have to return DefWindowProc.
_________________
Back to top
View user's profile Send private message
b6ooy
Grandmaster Cheater
Reputation: 0

Joined: 21 Sep 2006
Posts: 653

PostPosted: Thu Feb 19, 2009 10:31 am    Post subject: Reply with quote

I was going to ask the same , also how to make microsoft 2007 buttons style ?
I saw one program that have windows xp and vista and microsoft 2007 style buttons all together , i like to do that but i dont know how in C++ Win32 apps ( Possible ? ) .
I think its only done in .NET but i havent learn that yet .
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