Sign in to follow this  
Followers 0
jdickens

How do I get the standard window color?

4 posts in this topic

If I change the background color of a label, how do I know what color to change it back to for sure?

J


If I am too verbose, just say so. You don't need to run on and on.

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

If I change the background color of a label, how do I know what color to change it back to for sure?

J

<{POST_SNAPBACK}>

window's color:

Const $COLOR_BTNFACE = 15;Button face
$out = DllCall("user32", "long", "GetSysColor", "long", $COLOR_BTNFACE)

; BGR output to RGB mode
$hColor = Hex( $out[0], 6)
$hexColor = StringMid($hColor, 5, 2) & StringMid($hColor, 3, 2) & StringMid($hColor, 1, 2)
MsgBox(0, "", $hColor )

Edit> @CyberSlug: Nice UDF. :whistle:

Edited by Josbe

Share this post


Link to post
Share on other sites

Hey thanks, guys:

That worked very well.

J


If I am too verbose, just say so. You don't need to run on and on.

Share this post


Link to post
Share on other sites

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  
Followers 0