aec Posted August 23, 2007 Posted August 23, 2007 The following code creates a child static window using CreateWindowEx#include <GUIConstants.au3> $Form1 = GUICreate("CreateWindowEx childs", 300, 100) GuiSetBkColor(0xa0c0e0) $style = BitOR($WS_CHILD, $WS_BORDER, $WS_VISIBLE) $ex_style = 0 $x=10 $y=10 $width=250 $height=20 ; Create a child static window $l_hwnd = DllCall("user32.dll", "long", "CreateWindowEx", "long", $ex_style, _ "str", 'STATIC', "str", 'Static ctrl with CreateWindowEx', _ "long", $style, "long", $x, "long", $y, "long", $width, "long", $height, _ "hwnd", $Form1, "long", 0, "hwnd", 0, "long", 0) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEndWhen compiled with 3.2.2.0 autoit the Static control is transparent.but with 3.2.5.6 version the Static control uses the original GUI color as backgound.The same happens for the WC_LINK class (hyperlink) controls that are the controls I am mainly interested in.Is there any way to have this old behaviour back?regards
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