GUISetBkColor
设置 GUI 窗口背景颜色.
GUISetBkColor ( background [, winhandle] )
参数
background
|
窗口背景色值.
|
winhandle
|
[可选] 使用 GUICreate() 函数返回的窗口句柄. (默认为先前使用的窗口).
|
返回值
相关
GUICreate
函数示例
#include <ColorConstantS.au3>
#include <GUIConstantsEx.au3>
Example()
Func Example()
GUICreate("My GUI") ; will create a dialog box that when displayed is centered
GUISetBkColor($COLOR_RED) ; will change background color
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
GUIDelete()
EndFunc ;==>Example
----------------------------------------
|