Jump to content

How do I get the standard window color?

Recommended Posts

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



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
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...