设置按钮的样式
#include <GuiButton.au3>
_GUICtrlButton_SetStyle($hWnd, $iStyle)
$hWnd | 控件的控件ID/句柄 |
$iStyle | 可以是一个按钮样式组合 |
在MSDN中搜索
#include <GUIConstantsEx.au3>
#include <GuiButton.au3>
#include <WindowsConstants.au3>
_Main()
Func _Main()
Local $btn, $btn2
GUICreate("Buttons", 400, 400)
GUISetState()
$btn = GUICtrlCreateButton("Button1", 10, 10, 90, 50)
$btn2 = GUICtrlCreateButton("Button2", 10, 70, 90, 50)
MsgBox(4096, "信息", "Setting Button Style")
_GUICtrlButton_SetStyle($btn, $BS_AUTORADIOBUTTON)
_GUICtrlButton_SetStyle($btn2, $BS_AUTOCHECKBOX)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
EndSwitch
WEnd
Exit
EndFunc ;==>_Main