Hi there, I tried using GUICtrlCreateContextMenu on an Treeview item created with _GUICtrlTreeView_AddChild. Unfortunately, this function returns the handle instead of the ID. So GUICtrlCreateContextMenu can't be used. I try retreiving the ID using _WinAPI_GetDlgCtrlID($itemhandle) without success. It fails and return 0. Is there a way to create a Context Menu on an item created with _GUICtrlTreeView_AddChild ? Muchas gracias JD SOLVED EDIT: Solution from Mat #include <GuiConstantsEx.au