;无意中看到了一份vb实现这个的代码,转成au3来实现,备份到论坛,以防后用。
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("窗体透明效果(控件不透明)", 623, 442, -1, -1, -1, $WS_EX_LAYERED)
$Label1 = GUICtrlCreateLabel("Label1", 128, 56, 36, 17)
$Edit1 = GUICtrlCreateEdit("", 128, 88, 89, 81)
GUICtrlSetData(-1, "Edit1")
$Button1 = GUICtrlCreateButton("Button1", 128, 184, 89, 41)
$List1 = GUICtrlCreateList("", 248, 24, 137, 201)
GUISetBkColor(0xFF0000)
_winapi_SetLayeredWindowAttributes ($Form1, 0xFF0000, 0, $LWA_COLORKEY);这个函数实现的效果
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|