Jump to content
Sign in to follow this  

Context Menu Handler

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 !

Share this post

Link to post
Share on other sites

You can use native autoit GuiCtrlCreateContextMenu. A little example:

$MAIN = GUICreate("Example")
$LIST = GUICtrlCreateList("",80,80,100,200)
$CONTEXT_MENU = GUICtrlCreateContextMenu($LIST)
$ADD = GUICtrlCreateMenuItem("Add",$CONTEXT_MENU)
$DEL_ALL = GUICtrlCreateMenuItem("Dell all",$CONTEXT_MENU)

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

When the words fail... music speaks

Share this post

Link to post
Share on other sites

not contextmenu for gui,i want a context menu like file association,read the msdn forum!

Share this post

Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...