Sign in to follow this  
Followers 0
DrH

Context Menu Handler

4 posts in this topic

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



Hi,

why don't you use the native autoit functions like GUICtrlCreateContextMenu ?

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)
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

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  
Followers 0