Jump to content
Sign in to follow this  
mac1

Current control color

Recommended Posts

mac1

Hi All,

I've searched the forums and even posted accidentally in the developers forum. So that means the answer is obvious and I'll be slapping my forehead.

How do I determine the color of a control (a button in this case) before I use GUICtrlSetBkColor, so I can change it back?

Thanks,

Mac

Share this post


Link to post
Share on other sites
MerkurAlex

Hi All,

I've searched the forums and even posted accidentally in the developers forum. So that means the answer is obvious and I'll be slapping my forehead.

How do I determine the color of a control (a button in this case) before I use GUICtrlSetBkColor, so I can change it back?

Thanks,

Mac

Well all i can think of is pixelgetcolor() look it up in the help file there is probably a user32.dll call or something for this im not sure though.

[quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote]

Share this post


Link to post
Share on other sites
BrettF

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×