Hey,
I often wonder what styles a window is using. Now of course I can use _WinAPI_GetWindowLong($hwnd, $GWL_style) and _WinAPI_GetWindowLong($hwnd, $GWL_exstyle), but the results aren't exactly human readable, so I have this script that does a bit additional processing by using a brute force approach.
Is there a more elegant solution to this? Did I even get all the styles to check against?
Here's my script:
#region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper
I made this function 4 years ago:
I know, it could be done better now.
BTW: Open Watcom C - C++ Compiler has a nice Spy onboard showing all sytles and more. And it's is freeware.
#include <Constants.au3>
#include <WindowsConstants.au3>
Global $sActiveWindow = WinGetTitle("")
Global $aStyle = _WinGetStyle(WinGetHandle($sActiveWindow))
MsgBox(0, $sActiveWindow & " - Styles", _WinStyle2Text($aStyle[0]))
MsgBox(0, $sActiveWindow & " - ExStyles", _WinExStyle2Text($aStyle[1])