不知道是否需要这样的效果:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>
#include <ComboConstants.au3>
#Region ### START Koda GUI section ### Form=c:\users\yf\desktop\denglu\login.kxf
$Form1_1 = GUICreate("用户登录", 410, 271, 272, 175)
GUISetIcon("C:\Users\YF\Desktop\denglu\res\db.ico", -1)
$username = GUICtrlCreateLabel("用户名", 24, 168, 55, 20)
GUICtrlSetBkColor(-1,-2)
GUICtrlSetColor(-1,0x00ffff)
GUICtrlSetFont(-1, 12, 800, 0, "幼圆")
$psw = GUICtrlCreateLabel("密码", 24, 208, 58, 20)
GUICtrlSetBkColor(-1,-2)
GUICtrlSetColor(-1,0x00ffff)
GUICtrlSetFont(-1, 12, 800, 0, "幼圆")
GUICtrlCreateInput("", 88, 168, 161, 21)
GUICtrlCreateInput("", 88, 208, 161, 21)
;$Pic1 = GUICtrlCreatePic("C:\Users\YF\Desktop\denglu\res\login.bmp", 0, 0, 409, 129)
$Button1 = GUICtrlCreateButton("登录", 304, 168, 89, 57)
GUICtrlSetFont(-1, 12, 800, 0, "幼圆")
$Pic2 = GUICtrlCreatePic("C:\Users\YF\Desktop\denglu\res\1.bmp", 264, 152, 28, 100)
GUISetBkColor(0)
; _WinAPI_SetLayeredWindowAttributes($Form1_1, 0xabcdef, 120)
$MARGINS = DllStructCreate("int;int;int;int")
DllStructSetData($MARGINS, 1, -1)
DllCall("dwmapi.dll", "none", "DwmExtendFrameIntoClientArea", "hwnd", $Form1_1, "ptr", DllStructGetPtr($MARGINS))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While GUIGetMsg()+3
WEnd
|