PDA

View Full Version : Call my plugin from Winamp's menu


Joel
3rd January 2005, 15:30
I have add my option into Winamp's menu:

HMENU hMenu = (HMENU)SendMessage(plugin.hwndParent, WM_USER, 0,IPC_GET_HMENU);
InsertMenu(hMenu, 16, MF_BYPOSITION, 12009, "Call me!");

How can I execute my plugin from the menu option?
Thanks! :)

DrO
3rd January 2005, 16:28
you just need to trap the wm_command message in the subclassed winamp window proceedure looking for loword(wp) == 12009 and then do as you need

-daz

Joel
3rd January 2005, 19:17
thanks, dro :)

That ppart I know, but the main procedure is in the "config" function... :)
I'm usign CreateWindowEx, not a dialogparam nor other dialog proc.