Helomotorola Posted September 15, 2007 Share Posted September 15, 2007 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? Thank Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 15, 2007 Share Posted September 15, 2007 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? Thank 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now