BCGControlBar Pro for MFC
CBCGPToolbarMenuButton* CBCGPPopupMenu::FindItemByCommand ( UINT  uiCmd) const

Provides access to a popup menu item by command.

Returns
A pointer to a menu item.

In BCGControlBar Library menu items are represented by CBCGPToolbarMenuButton objects.

Use this function to get access to a menu item specified by the uiCmd parameter.

Parameters
uiCmdSpecifies the command of a menu item's to return.