Jump to content

Context Menu Handler


DrH
 Share

Recommended Posts

Hi guys

i want to create a context menu handler dll,i found this : http://msdn.microsoft.com/en-us/library/bb776881%28v=vs.85%29.aspx ,but i dont inderstand anything

please,can some one help me to create that dll.

Thanks in advance !

Link to comment
Share on other sites

You can use native autoit GuiCtrlCreateContextMenu. A little example:

$MAIN = GUICreate("Example")
$LIST = GUICtrlCreateList("",80,80,100,200)
GUICtrlSetData($LIST,"Item1|Item2|Item3|Item4|Item5|Item6|Item7")
$CONTEXT_MENU = GUICtrlCreateContextMenu($LIST)
$ADD = GUICtrlCreateMenuItem("Add",$CONTEXT_MENU)
$DEL_ALL = GUICtrlCreateMenuItem("Dell all",$CONTEXT_MENU)
GUISetState(@SW_SHOW,$MAIN)

While True
    Switch GUIGetMsg()
        Case $ADD
            $INPUT = InputBox("Input","New item","")
            If $INPUT <> "" Then GUICtrlSetData($LIST,$INPUT,1)
        Case $DEL_ALL
            GUICtrlSetData($LIST,"")
        Case -3
            Exit
    EndSwitch
    Sleep(10)
WEnd

When the words fail... music speaks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...