INTERACT FORUM
Windows => Plug-in Development => Topic started by: neFAST on November 19, 2008, 01:30:27 pm
-
Hello, today my problem is quite simple to describe.
I'm building a display plugin, and I would like to follow recommendations from the wiki: adding a sub-menu to the existing one that pop when right clicking on those plugins. For example the trackinfo sumenu allows you to chose a skin.
I have found an example in the SDK. Is the IMenuEx.h file still up to date? How can I use it with my C# plugin.
Any help will be greatly appreciated.
Thanks a lot!
-
(http://www.chathamgirlsgrammar.medway.sch.uk/pages/common/events/2003/Marathon/pictures/Mr%20Bump.jpg)
-
I'm not sure about the C# part, but here's C++ code:
Handle the windows message UM_CONTROL_BAR_COMMAND.
if ((wParam == CB_FILL_MENU) && (lParam != NULL))
{
IMenuEx * pMenu = (IMenuEx *) lParam;
// TODO: add menu items starting at ID: DISPLAY_MENU_ID_MIN
}
else if (wParam == CB_PROCESS_MENU_COMMAND)
{
MENU_INFO * pInfo = (MENU_INFO *) lParam;
// TODO: process menu return by looking at pInfo->nID
// return TRUE if handled, FALSE otherwise
}
-
Hum looks like the code I found in the SDK.
Any clue regarding the required includes?
-
I love the bump ;D
-
Yep but unfortunately it seems that I'm the first one to try messing with the menu un a c# plugin. ?