設(shè)置 GUI 窗口鼠標(biāo)光標(biāo)的圖標(biāo).
GUISetCursor ( [光標(biāo) ID [, 替換 [, 句柄]]]]
)
光標(biāo)ID | [可選參數(shù)] 鼠標(biāo)光標(biāo) Id (見(jiàn)備注). |
替換 | [可選參數(shù)] 強(qiáng)制使用請(qǐng)求的鼠標(biāo)光標(biāo) (見(jiàn)下文). 0 = (默認(rèn)) 不替換控件本身的默認(rèn)光標(biāo). 1= 替換默認(rèn)鼠標(biāo)光標(biāo). |
句柄 | [可選參數(shù)] 由 GUICreate 函數(shù)返回的窗口句柄 (默認(rèn)為先前使用的窗口). |
#include <GUIConstantsEx.au3>
Global $IDC
= -1, $newIDC = 0
Example()
Func Example()
HotKeySet("{Esc}", "Increment")
GUICreate("按
Esc 鍵使光標(biāo)號(hào)遞增", 400, 400, 0, 0, 0x04CF0000, 0x00000110)
GUISetState()
While
GUIGetMsg()
<> $GUI_EVENT_CLOSE
If $newIDC <> $IDC Then
$IDC = $newIDC
GUISetCursor($IDC)
EndIf
ToolTip("GUI
光標(biāo) # " & $IDC)
WEnd
EndFunc ;==>Example
Func Increment()
$newIDC = $IDC + 1
If
$newIDC >
15 Then
$newIDC =
0
EndFunc ;==>Increment
provider with jb51.net (unicode) |