Jump to content
Sign in to follow this  

How does to get Styles of a Input?

Recommended Posts

If a windows have a Input. I want to know Styles of a Input is Read-only or other?

For me more anwer, how does to set style for that Button to normal?


In PaulIA's Auto3Lib UDF, under the API functions, is a function called _API_GetWindowLong(). Two of the things that can be retrieved there are:

$GWL_EXSTYLE - Retrieves the extended window styles

$GWL_STYLE - Retrieves the window styles

So you call:
_API_GetWindowLong($hWnd, $iIndex)

Where $hWnd is the handle of the input control. You want Styles vice Extended Styles, so $iIndex is $GWL_STYLE, and you would be looking for $ES_READONLY (0x0800 or bit 11) set using BitAnd().


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...