Jump to content
Sign in to follow this  
power2anger

Change Button Style (?)

Recommended Posts

power2anger

Hi.

I Have got one question. :mellow:

How i can change button style to Win 98?

Look this: Posted Image

Please help me.

P.S. Sorry for my little english ,but i am from poland :)

Edited by power2anger

Share this post


Link to post
Share on other sites
funkey

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
    EndIf
    Return False
EndFunc

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.

Share this post


Link to post
Share on other sites
power2anger

This function not working ,or i doing something wrong.

Can You give me example with a simple GUI?

Edited by power2anger

Share this post


Link to post
Share on other sites
monoscout999

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

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  

×