设置 GUI 窗口所有控件的默认背景色.
GUICtrlSetDefBkColor ( 背景色 [, 句柄] )
背景色 | 控件的默认背景色. |
句柄 | [可选参数] 由 GUICreate 函数返回的窗口句柄 (默认为先前使用的窗口). |
成功: | 返回 1. |
失败: | 返回 0. |
#include <GUIConstantsEx.au3>
Example()
Func Example()
Local
$msg
GUICreate("设置
GUI 控件文本颜色") ;
创建居中显示的 GUI 窗口
GUICtrlSetDefBkColor(0xFF0000) ; 所有定义的控件将改变文字颜色
GUICtrlCreateLabel("标记", 10, 5)
GUICtrlCreateRadio("单选框", 10, 25, 50)
GUICtrlSetBkColor(-1, 0x0000FF) ;
为指定的控件改变文字颜色
GUICtrlCreateButton("按钮",
10, 55)
GUISetState() ; 显示一个空白的窗口
; 运行 GUI, 直到
GUI 被关闭
While
1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
EndFunc ;==>Example
provider with jb51.net (unicode) |