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