Home > Back-end >  BCB for parent menu upon a submenu ID Name
BCB for parent menu upon a submenu ID Name

Time:10-12

Char menuText [60].
//the menu handle
HMENU hMainMenu=: : GetMenu (HWND);//the HWND is designated window handle
If (hMainMenu!=NULL) {
//get the menu Name, menuID for current ID the mouse to click the menu
GetMenuString (hMainMenu, this - & gt; MenuText menuID, sizeof (menuText), MF_BYCOMMAND);
}
Now know the ID of the mouse to click the menu, how to get his father's Name of the menu?
  • Related