BCGControlBar Pro for MFC
BOOL CBCGPToolBar::GetRouteCommandsViaFrame ( )
inline

Determines whether the toolbar commands are routed via its direct owner (if not NULL) or via the parent frame.

Returns
Nonzero if the commands are routed via the parent frame; it is 0 if the commands are routed via the toolbar's direct owner.

By default the toolbar commands are routed via the parent frame window. Call SetRouteCommandsViaFrame() to alter this flag.