Switch $nWndFrom
Case $nWndListView
Switch $iCode
Case $NM_RCLICK
Local $tInfo = DllStructCreate($tagNMITEMACTIVATE, $lParam)
Local $iIndex = DllStructGetData($tInfo, "Index")
If $iIndex <> -1 Then _ContextMenu($iIndex)
My code looks like this and what it does is it calls a function that creates a a context menu that says 'whatever'
What if I want to add another context menu when I right click? Would it be like this?
Switch $nWndFrom
Case $nWndListView
nowagain Trick example from GaryFrost #include <GuiMenu.au3>
#include <WindowsConstants.au3>
#include <GuiConstantsEx.au3>
#include <GuiListView.au3>
#include <GuiImageList.au3>
; ========================================================================
; Global variables
; ========================================================================
Global Enum $idOpen = 1000, $idSave, $idInfo
; ========================================================================