How to set/change text for toolbar buttons and menu items associated with a particular command?

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

Get the command identifier from the command manager and, then, set the text attributes m_sToolbarText and m_sMenuText. If you are setting/changing text after the frame window has already been created, do not forget to call the RecalcLayout() method of the frame.

CExtCmdManager::cmd_t * p_cmd;
p_cmd = g_CmdManager->CmdGetPtr( ID_... );
ASSERT( p_cmd != NULL );
p_cmd->m_sMenuText = _T( "Menu text" );
p_cmd->m_sToolbarText = _T( "Toolbar text" );