Quantcast
Channel: AutoIt v3 - Developer Chat
Viewing all articles
Browse latest Browse all 750

AutoIt v3.3.10.2 : GUICtrlSetCursor vs WM_SETCURSOR

$
0
0
In AutoIt v3.3.10.2 disabled events WM_SETCURSOR after using GUICtrlSetCursor :
AutoIt         
#Include <WindowsConstants.au3> #include <GUIConstantsEx.au3> $Form1 = GUICreate("Form1", 210, 110, -1, -1) $Label1 = GUICtrlCreateLabel("Label1", 24, 24, 150, 50) GUICtrlSetBkColor(-1, 0xFFFF00) GUICtrlSetCursor(-1, 0) GUISetState(@SW_SHOW) $hCtrl = GUICtrlGetHandle($Label1) ConsoleWrite('-> $Label1 = ' & $Label1 & ' hCtrl = ' & $hCtrl & @CRLF) GUIRegisterMsg($WM_SETCURSOR, 'WM_SETCURSOR') While 1     $nMsg = GUIGetMsg()     Switch $nMsg         Case $GUI_EVENT_CLOSE             Exit     EndSwitch WEnd Func WM_SETCURSOR($hWnd, $Msg, $wParam, $lParam)     Static $iNum     If $wParam = $hCtrl Then         $iNum += 1         ConsoleWrite('--- > ' & $iNum & @CRLF)     ElseIf $wParam <> $Form1 Then         ConsoleWrite('!>' & $wParam & @CRLF)     EndIf     Return $GUI_RUNDEFMSG EndFunc

Viewing all articles
Browse latest Browse all 750