GUICtrlSetDefBkColor
设置 GUI 窗口所有控件的默认背景色.
GUICtrlSetDefBkColor ( defbkcolor [, winhandle] )
参数
defbkcolor
|
控件的默认背景色.
|
winhandle
|
[可选] 由 GUICreate() 函数返回的窗口句柄 (默认为先前使用的窗口).
|
返回值
相关
GUICreate, GUICtrlSetBkColor, GUICtrlSetDefColor
函数示例
#include <GUIConstantsEx.au3>
Example()
Func Example()
GUICreate("test GUISetTextColor", 100, 100) ; will create a dialog box that when displayed is centered
GUICtrlSetDefBkColor(0xFF0000) ; will change text color for all defined controls
GUICtrlCreateLabel("label", 10, 5)
GUICtrlCreateRadio("radio", 10, 25, 50)
GUICtrlSetBkColor(-1, 0x0000FF) ; will change text color for specified control
GUICtrlCreateButton("button", 10, 55)
GUISetState(@SW_SHOW) ; will display an empty dialog box
; Loop until the user exits.
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
EndSwitch
WEnd
EndFunc ;==>Example
----------------------------------------
|