hey im trying to create an menu addin, i can create the menu item and but all of the submenu items are disabled? is there a differnet function that should be used?
cheersCode:ghwnd_Kazaa = FindWindow("KaZaA",NULL); hKazaaMain = GetMenu(ghwnd_Kazaa); HMENU hSubMenu = NULL; hSubMenu = CreatePopupMenu(); AppendMenu(hSubMenu,MF_STRING | MF_ENABLED,MENU_ADDIN,"A&ddIn"); AppendMenu(hKazaaMain,MF_STRING | MF_POPUP | MF_ENABLED,(UINT_PTR)hSubMenu,"A&ddIn"); SetMenu(ghwnd_Kazaa,hKazaaMain);![]()




Reply With Quote