﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1432	"AutoIt3_x64.exe - GUIRegisterMsg($WM_NOTIFY, ""MY_WM_NOTIFY"")"	mlipok		"AutoIt:3.3.4.0/X64   (Os:WIN_7/X64   Language:0415 Keyboard:00000415 Cpu:X64)

I check example on this site

[http://www.autoitscript.com/forum/index.php?showtopic=105728&st=0&p=747136&hl=MY_WM_NOTIFY&fromsearch=1&#entry747136]

works very well on
""c:\Program Files (x86)\AutoIt3\AutoIt3.exe""

but had problem on
""c:\Program Files (x86)\AutoIt3\AutoIt3_x64.exe""


here is this scripts
{{{
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GuiTreeView.au3>
#include <Array.au3>

Global $aData[5] = [4, ""Item 1"", ""Item 2"", ""Item 3"", ""Item 4""]
Global $aItem_Handles[UBound($aData)]

Global $hMain_GUI = GUICreate(""TreeView Demo"", 500, 500)

$hTree = GUICtrlCreateTreeView(10, 10, 480, 480)
$hRoot = GUICtrlCreateTreeViewItem(""Root"", $hTree)
For $i = 1 To $aData[0]
    $aItem_Handles[$i] = GUICtrlGetHandle(GUICtrlCreateTreeViewItem($aData[$i], $hRoot))
Next

GUISetState()

; Initialise ""DoubleClick on TreeView function""
GUIRegisterMsg($WM_NOTIFY, ""MY_WM_NOTIFY"")

Global $fDblClk = False

While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch

    ; Check if tree view double clicked
    If $fDblClk = True Then
        $sText = _GUICtrlTreeView_GetText($hTree, _GUICtrlTreeView_GetSelection($hTree))
        MsgBox(0, ""Hit"", ""You double clicked on "" & $sText )
        $fDblClk = False
    EndIf
WEnd

Func MY_WM_NOTIFY($hWnd, $Msg, $wParam, $lParam)

    Switch $wParam
        Case $hTree
            Local $tagNMHDR = DllStructCreate(""int;int;int"", $lParam)
            If @error Then Return
            If DllStructGetData($tagNMHDR, 3) = $NM_DBLCLK Then $fDblClk = True
    EndSwitch
    $tagNMHDR = 0

EndFunc  ;==>MY_WM_NOTIFY
}}}

"	Bug	closed		AutoIt	3.3.4.0	None	No Bug	AutoIt3_x64.exe	
