How to make dynamic control bars always visible in the pop-up menu with a list of all control bars?

Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

By default, all the commands associated with menu items are regarded as not frequently used and to show them the user needs to click the round down arrow button. To make them always visible, get their command objects from the command manager and invoke the CExtCmdItem::StateSetBasic (bool bOn = true) method for them:

UINT nCmdID = (UINT)m_pDynamicBar->GetDlgCtrlID();
CExtCmdItem * pCmdItem = 
    g_CmdManager->CmdGetPtr(
            pApp->m_pszProfileName,
            nCmdID
            );
ASSERT( pCmdItem != NULL );
pCmdItem->StateSetBasic();