﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2733	WM_SETCURSOR doesn't pass $wParam as handle after using GUICtrlSetCursor	MrCreatoR		"Here is an example that shows the problem:


{{{
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$hGui = GUICreate('Test ' & @AutoItVersion, 200, 150)
$iLbl = GUICtrlCreateLabel('Test GUICtrlSetCursor', 20, 40, 160, 20)
$hLbl = GUICtrlGetHandle($iLbl)

GUISetState()
GUIRegisterMsg($WM_SETCURSOR, 'WM_SETCURSOR')
GUICtrlSetCursor($iLbl, 0) ;Comment this line to see the difference

While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
WEnd

Func WM_SETCURSOR($hWnd, $iMsg, $wParam, $lParam)
	Switch $wParam
		Case $hLbl
            ConsoleWrite('$wParam = $hLbl? ' & ($wParam = $hLbl) & @LF)
	EndSwitch
	
    Return $GUI_RUNDEFMSG
EndFunc
}}}

Environment(Language:0419  Keyboard:00000409  OS:WIN_7/  CPU:X64 OS:X64)

On AutoIt versions below 3.3.10.2 there was no problem."	Bug	closed		AutoIt	3.3.10.2	None	No Bug		
