![]() |
#1 |
Junior Member
Join Date: Feb 2009
Posts: 6
|
Add Item on Winamp View Menu
Hello,
i am developping a gen plugin, and i want to know, if it possible to add my own item on View Menu, like "PlayList Editor"? I Create Option Menú with: int len = strlen("Let&ras ACL\tAlt+R")+1; wchar_t *wText = new wchar_t[len]; memset(wText,0,len); ::MultiByteToWideChar(CP_ACP, NULL,"Let&ras ACL\tAlt+R", -1, wText,len ); HMENU hMenu=(HMENU)SendMessage(g_Plugin.hwndParent,WM_WA_IPC,(WPARAM)3,IPC_GET_HMENU); AppendMenu(hMenu,MF_STRING,ID_Load,wText); But that code don't create on view menu: ** 0 : main popup menu ** 1 : main menubar file menu ** 2 : main menubar options menu ** 3 : main menubar windows menu ** 4 : main menubar help menu ** other values will return NULL. It does not exists the option for View Menu I want to create an option into View menú as attach image Thanks a lot Fabio Parra |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Aug 2008
Posts: 114
|
Use additional WINDOWS MENU FUNCTIONS to get the view menu and add your item. Consult Windows SDK documentation.
|
![]() |
![]() |
![]() |
#3 |
Join Date: Sep 2003
Posts: 27,873
|
i think there was a change in that api a long time back which wasn't updated in the sdk (i think it's been wrong in the sdk's since the 5.0 release seeing as it was implemented for 2.9x which didn't have modern skin support which caused an expansion of the menus available). here's what i have in my own file (will hopefully appear in one of the next sdk builds).
-dazcode: |
![]() |
![]() |
![]() |
#4 |
Junior Member
Join Date: Feb 2009
Posts: 6
|
Thanks DrO for your help.
I have fixed my problem with your code. Thanks, Fabio |
![]() |
![]() |
![]() |
#5 | |
Senior Member
Join Date: Aug 2008
Posts: 114
|
Quote:
|
|
![]() |
![]() |
![]() |
#6 |
Join Date: Sep 2003
Posts: 27,873
|
@fleoparra: good to hear that
![]() @griffins_Grader: i'm wondering what 'windows helper functions' you're refering to? -daz |
![]() |
![]() |
![]() |
#7 |
Senior Member
Join Date: Aug 2008
Posts: 114
|
The Menu Functions in windows sdk like GetMenuItemInfo etc,,,
|
![]() |
![]() |
![]() |
#8 |
Join Date: Sep 2003
Posts: 27,873
|
hmm, k. can't really see how that would have helped in this situation, oh well.
-daz |
![]() |
![]() |
![]() |
#9 |
Senior Member
Join Date: Aug 2008
Posts: 114
|
It wasn't a straight forward approach, I used it because I didn't know of the WPARAMs (5-10) that you posted. Pretty much the Windows SDK menu functions gives menu item's name and position. I used the position and name to get to where I wanted.
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|