Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 3rd January 2005, 15:30   #1
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,896
Call my plugin from Winamp's menu

I have add my option into Winamp's menu:
code:

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!


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux w/ xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Debian unstable w/ xfce4.
Joel is offline   Reply With Quote
Old 3rd January 2005, 16:28   #2
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,275
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
DrO is offline   Reply With Quote
Old 3rd January 2005, 19:17   #3
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,896
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.


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux w/ xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Debian unstable w/ xfce4.
Joel is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump