更改指定控件的样式.
GUICtrlSetStyle ( 控件ID, 样式 [, 扩展样式] )
控件ID | 控件标识符(控件ID),可由 GUICtrlCreate... 函数的返回值获得. |
样式 | 指定控件的样式.请查看附录中关于 GUI 控件样式 的说明. |
扩展样式 | [可选参数] 指定控件的扩展样式.请查看附录的 扩展样式表. |
成功: | 返回值为1. |
失败: | 返回值为0. |
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
Example()
Func Example()
Local $msg
GUICreate("My GUI style") ; will create a dialog box that when displayed is centered
GUICtrlCreateLabel("my label which will split on several lines", 10, 20, 100, 100)
GUICtrlSetStyle(-1, $SS_RIGHT)
GUISetState()
; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
EndFunc ;==>Example