Jump to content

Change Button Style (?)

Recommended Posts

This function should help:

Func _RemoveTheme($hCtrl)
    If Not IsHWnd($hCtrl) Then $hCtrl = GUICtrlGetHandle($hCtrl)
    If IsHWnd($hCtrl) Then
        Local $aR = DllCall("UxTheme.dll", "Long", "SetWindowTheme", "HWND", $hCtrl, "Ptr", 0, "WStr", " ")
        If Not @error And $aR[0] = 0 Then Return True
    Return False

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Link to comment
Share on other sites

This function not working ,or i doing something wrong.

Can You give me example with a simple GUI?

Is much nice if the person that start the thread post a code to work with, imagine the people that make support have to write a script for every post. please make us this job(?) easy. Edited by monoscout999
Link to comment
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...