BCGControlBar Pro for MFC
void CBCGPMenuBar::SetMenuButtonRTC ( CRuntimeClass *  pMenuButtonRTC)

Sets a custom runtime class information used for dynamic creation of menu buttons.

Use this function in order to specify the runtime class information used for dynamic creation of menu buttons. You can derive a class from CBCGPToolbarMenuButton and CBCGPMenuBar will insert buttons of this class while building popup menu items.

Parameters
pMenuButtonRTCSpecifies runtime class information for CBCGPMenuButton - derived class.