Jump to content

Retrieve the style of a button on an external program


Go to solution Solved by Nine,

Recommended Posts

Posted

Hello,

I am looking a way to retrieve the Style of a button (enable / disable) in an external program (installer)

I saw many exemple to get the window style but not for a control (especially a button)

Someone give me a hint, please ?

image.png.ef8f10228ccd75010deea74142ff4f8c.png

0x58010000 is disabled
0x50010000 is enable

 

C.

  • Solution
Posted
19 minutes ago, ioa747 said:

The style has nothing to do with the (enable / disable) , look for ControlEnable

couldn't make it working 😞

Posted
11 minutes ago, Nine said:

You can use the same api with windows and controls :

Local $iStyle = _WinAPI_GetWindowLong($hCtrl,  $GWL_STYLE)

 

Yesssss, it works. I didn't know it does both!!!!!! 😁

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...