Jump to content

Ctrls with CreateWindowEx


aec
 Share

Recommended Posts

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
WEnd

When compiled with 3.2.2.0 autoit the Static control is transparent.

post-11600-1187868432_thumb.gif

but with 3.2.5.6 version the Static control uses the original GUI color as backgound.

post-11600-1187868484_thumb.gif

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...