BCGControlBar Pro for MFC
const CObList& CBCGPToolbarMenuButton::GetCommands ( ) const
inline

Gives read-only access to the list of commands associated with the toolbar menu button.

Returns
A const reference to CObList object, which contains a collection of CBCGPToolbarButton objects.

A toolbar menu button can display a submenu. The list of the submenu's commands can be provided in the button's constructor or in CreateFromMenu() as a handle to Windows menu. The Windows menu is converted to a list of CBCGPToolbarButton - derived objects and stored in the internal CObList object.