Ich habe mich heute doch mal kurz rangesetzt, und eine WinSetStyle() Funktion gescriptet:
[autoit]
#include <WinAPI.au3>
Func WinSetStyle($hWnd, $text="", $Style=-1, $EX_Style=-1)
$return = True
If $Style <> -1 Then
$r1 = _WinAPI_SetWindowLong($hWnd, $GWL_STYLE, $Style)
If $r1 = 0 Then $return = False
EndIf
If $EX_Style <> -1 Then
$r2 = _WinAPI_SetWindowLong($hWnd, $GWL_EXSTYLE, $EX_Style)
If $r2 = 0 Then $return = False
EndIf
_WinAPI_RedrawWindow($hWnd)
return $return
EndFunc
Man Nutzt sie wiefolgt:
WinSetStyle(HandleVomFenster, [TextVomFenster = ""], [Style = -1], [ExStyle = -1])
[/autoit]Das ganze funktioniert nicht mit jedem Fenster!!! z.B. beim Explorer kann der ExStyle $GUI_WS_EX_PARENTDRAG nicht angewendet werden.
Ich hoffe jemand kann etwas damit anfangen