BCGControlBar Pro for MFC
HMENU CBCGPContextMenuManager::GetMenuByName ( LPCTSTR  lpszName,
UINT *  puiOrigResID = NULL 
) const

Returns a handle to menu when given a menu name

Returns
An HMENU handle to menu.

If the handle is found, puiOrigResID will contain the original resource ID of this menu.

Parameters
lpszNameSpecifies the menu name
puiOrigResIDReceives the menu resource ID