void CButtonUI::BindTriggerTabSel( int _SetSelectIndex /*= -1*/ ) { LPCTSTR pstrName = GetBindTabLayoutName(); if(pstrName == NULL || (GetBindTabLayoutIndex() < 0 && _SetSelectIndex < 0)) return; CTabLayoutUI* pTabLayout = static_cast<CTabLayoutUI*>(GetManager()->FindControl(pstrName)); if(!pTabLayout) return; pTabLayout->SelectItem(_SetSelectIndex >=0?_SetSelectIndex:GetBindTabLayoutIndex()); }
void CButtonUI::BindTriggerTabSel( int _SetSelectIndex /*= -1*/ ) { if(GetBindTabLayoutName().IsEmpty() || (GetBindTabLayoutIndex() < 0 && _SetSelectIndex < 0)) return; CTabLayoutUI* pTabLayout = static_cast<CTabLayoutUI*>(GetManager()->FindControl(GetBindTabLayoutName())); if(!pTabLayout) return; pTabLayout->SelectItem(_SetSelectIndex >=0?_SetSelectIndex:GetBindTabLayoutIndex()); }