I want to use this function in my program
EnableMenuItem Function - http://msdn.microsoft.com/en-us/libr...36(VS.85).aspx
any ideas how to use it, i am trying to edit right click explorer context menu
Printable View
I want to use this function in my program
EnableMenuItem Function - http://msdn.microsoft.com/en-us/libr...36(VS.85).aspx
any ideas how to use it, i am trying to edit right click explorer context menu
vb Code:
Private Declare Function EnableMenuItem _ Lib "user32" ( _ ByVal menu As IntPtr, _ ByVal ideEnableItem As Integer, _ ByVal enable As Integer _ ) As Integer
Can you tell me what should i use in the first argument If I want to modify Windows Explorer Context Menu
I think calss ID of this menu is 32770
You need to provide a window handle (HMENU) to the menu where you try to enable the element.
I might be wrong since I have not been using Win32API often lately.
I think you need to get a window handle of the explorer (FindWindow function)
Then I think you should call GetMenu Api to obtain a menu handle.
I don't know whether it would work with a popup menu or not.
hmmthanks for your help will try it and revert back soon