//****************************************************************************** CBCGPBaseRibbonElement* CBCGPRibbonButtonsGroup::Find (const CBCGPBaseRibbonElement* pElement) { ASSERT_VALID (this); for (int i = 0; i < m_arButtons.GetSize (); i++) { CBCGPBaseRibbonElement* pButton = m_arButtons [i]; ASSERT_VALID (pButton); CBCGPBaseRibbonElement* pElem = pButton->Find (pElement); if (pElem != NULL) { ASSERT_VALID (pElem); return pElem; } } return CBCGPBaseRibbonElement::Find (pElement); }