博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
autoit 中_GUICtrlStatusBar_SetBkColor失效的解决办法
阅读量:6856 次
发布时间:2019-06-26

本文共 1381 字,大约阅读时间需要 4 分钟。

#include 
#include
#include
#include
Dim $XS_n$Debug_SB = False ; Check ClassName being passed to functions, set to True and use a handle to another control to see it work_Main()Func _Main() Local $hGUI, $hStatus Local $aParts[3] = [75, 150, -1] ; Create GUIXPStyle(1) $hGUI = GUICreate("(Example 1) StatusBar Set BkColor", 400, 300) $hStatus = _GUICtrlStatusBar_Create ($hGUI) GUISetState() ; Set parts _GUICtrlStatusBar_SetParts ($hStatus, $aParts) _GUICtrlStatusBar_SetText ($hStatus, "Part 1") _GUICtrlStatusBar_SetText ($hStatus, "Part 2", 1) ; Set background color _GUICtrlStatusBar_SetBkColor ($hStatus, $CLR_MONEYGREEN) ; Loop until user exits XPStyle(0) Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete()EndFunc ;==>_MainFunc XPStyle($OnOff = 1) If $OnOff And StringInStr(@OSTYPE, "WIN32_NT") Then $XS_n = DllCall("uxtheme.dll", "int", "GetThemeAppProperties") DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", 0) Return 1 ElseIf StringInStr(@OSTYPE, "WIN32_NT") And IsArray($XS_n) Then DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", $XS_n[0]) $XS_n = "" Return 1 EndIf Return 0EndFunc ;==>XPStyle

 

转载于:https://www.cnblogs.com/jenney-qiu/p/4094972.html

你可能感兴趣的文章
查询Oracle正在执行和执行过的SQL语句
查看>>
MyBatis学习总结(10)——批量操作
查看>>
Linux的shell脚本打印图形和主机监控脚本练习
查看>>
storm流处理的简单例子的一些问题
查看>>
我的友情链接
查看>>
php5.2.5安装xcache-2.0.0
查看>>
varnish缓存四:性能调优
查看>>
关于顽固进程scclient.exe、scguardc.exe、sccltui.exe和系统服务scclient、scguardc
查看>>
什么是事务型的存储引擎
查看>>
unity 生命周期
查看>>
一次观影经验看互联网的赚钱之道
查看>>
硬链接与符号链接的区别.
查看>>
手机自适应web
查看>>
第 6 章 存储 - 042 - 用 volume container 共享数据
查看>>
linux学习指南
查看>>
牛逼的vscode的设置
查看>>
DP 恢复命令omnir
查看>>
nagios
查看>>
3.文件属性,权限,正则表达式
查看>>
大数据从小数据开始
查看>>