guland 发表于 2016-3-23 14:15:04

炫彩界面库AU3教程4,窗口背景

先介绍一下窗口的组合状态参数$window_state_flag_nothing 无

$window_state_whole_leave 整个窗口

$window_state_body_leave 窗口-body

$window_state_top_leave 窗口-top

$window_state_bottom_leave 窗口-bottom

$window_state_left_leave 窗口-left

$window_state_right_leave 窗口-right

看完上面我们再来看看代码:#region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_UseUpx=n
#AutoIt3Wrapper_UseX64=n
#endregion ;**** 参数创建于 ACNWrapper_GUI ****
#include "XCGUI_Fun.au3"
XInitXCGUI()
$create = XWnd_Create("500", "500", "550", "550", "窗口测试", 47)
$btn2 = XBtn_Create("180", "260", "75", "25", "退出程序", $create)
XEle_RegEventC($btn2, "btn2")
$bk=XWnd_GetBkInfoManager($create)
XBkInfoM_AddFill($bk,$window_state_body_leave,0xFFA500,255)
XBkInfoM_AddFill($bk,$window_state_top_leave,0x7CFC00,255)
XBkInfoM_AddFill($bk,$window_state_bottom_leave,0x7CFC00,255)
XBkInfoM_AddFill($bk,$window_state_left_leave,0x7CFC00,255)
XBkInfoM_AddFill($bk,$window_state_right_leave,0x7CFC00,255)
XWnd_ShowWindow($create)
XRunXCGUI()
Func btn2($bh)
        xquit_acn($create)
EndFunc运行截图:



本期重点:XWnd_GetBkInfoManager获取背景内容管理器
XWnd_GetBkInfoManager(窗口句柄)
XBkInfoM_AddFill添加背景内容填充
XBkInfoM_AddFill(背景管理器句柄,窗口组合状态,颜色,透明度)

chzj589 发表于 2016-3-23 14:44:52

回复 1# guland

xixin1314 发表于 2018-9-22 13:40:27

好漂亮啊,谢谢
页: [1]
查看完整版本: 炫彩界面库AU3教程4,窗口背景