﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1258	TreeView + ContextMenu versus Own window Titlebar.	anonymous	Valik	"left mouse click on window titlebar,
directly after opening a treeView contextMenu item,
triggers contextMenu of window titlebar.

not sure if there are any other gui items that have this side effect.
GUICtrlCreateContextMenu example at leased not.

Environment = 3.3.0.0 under  WIN_XP/Service Pack 3 X86
AutoIt:3.3.1.4   (Os:WIN_XP/X86/Service Pack 3   Language:0409 Keyboard:00000409 Cpu:X86)
{{{
;left mouse click on window titlebar,
;directly after opening a treeView contextMenu item,
;triggers contextMenu of window titlebar.
;
;not sure if there are any other gui items that have this side effect.
;GUICtrlCreateContextMenu example at leased not.
;
;Environment = 3.3.0.0 under  WIN_XP/Service Pack 3 X86
;AutoIt:3.3.1.4   (Os:WIN_XP/X86/Service Pack 3   Language:0409 Keyboard:00000409 Cpu:X86)

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <TreeViewConstants.au3>
#include <StaticConstants.au3>

Opt('MustDeclareVars', 1)

Example()

Func Example()
	Local $treeview, $generalitem, $aboutitem
	Local $msg, $item, $hItem
	Local $treeview_cc,$generalitem_cc

	GUICreate(""My GUI with treeview"", 350, 215)

	$treeview = GUICtrlCreateTreeView(6, 6, 100, 150, _
BitOR($TVS_HASBUTTONS, $TVS_HASLINES, $TVS_LINESATROOT, $TVS_DISABLEDRAGDROP, $TVS_SHOWSELALWAYS), $WS_EX_CLIENTEDGE)
	$generalitem = GUICtrlCreateTreeViewItem(""General"", $treeview)
    $aboutitem = GUICtrlCreateTreeViewItem(""About"", $generalitem)

	$treeview_cc = GUICtrlCreateContextMenu($treeview)
	GUICtrlCreateMenuItem('$treeview_cc', $treeview_cc)

	$generalitem_cc = GUICtrlCreateContextMenu($generalitem)
	GUICtrlCreateMenuItem('$generalitem_cc', $generalitem_cc)

	GUISetState()
	While 1
		$msg = GUIGetMsg()
		Select
			Case $msg = $GUI_EVENT_CLOSE
				ExitLoop

		EndSelect
	WEnd

	GUIDelete()
EndFunc   ;==>Example
}}}"	Bug	closed	3.3.1.5	AutoIt	3.3.0.0	Blocking	Fixed	TreeView ContextMenu TitleBar	
