//*************************************************************************************
CBCGPBaseRibbonElement* CBCGPRibbonButtonsGroup::GetLastTabStop ()
{
	ASSERT_VALID (this);

	for (int i = (int)m_arButtons.GetSize () - 1; i >= 0; i--)
	{
		CBCGPBaseRibbonElement* pButton = m_arButtons [i];
		ASSERT_VALID (pButton);

		CBCGPBaseRibbonElement* pTabStop = pButton->GetLastTabStop ();
		if (pTabStop != NULL)
		{
			return pTabStop;
		}
	}

	return NULL;
}