//--------------------------------------------------------------------------- // Function name : EnableAllPages // Description : //--------------------------------------------------------------------------- void CRollupCtrl::EnableAllPages(BOOL bEnable) { //Enable-disable All for (int i=0; i<m_PageList.GetSize(); i++) _EnablePage(m_PageList[i], bEnable); //Update RecalLayout(); }
//--------------------------------------------------------------------------- // Function name : EnablePage // Description : //--------------------------------------------------------------------------- void CRollupCtrl::EnablePage(int idx, BOOL bEnable) { if (idx>=m_PageList.GetSize() || idx<0) return; //Enable-Disable _EnablePage(m_PageList[idx], bEnable); //Update RecalLayout(); }
void CRollupCtrl::EnablePage(int idx, BOOL bEnable) { if (!FindPage(idx)) return; //Enable-Disable _EnablePage(FindPage(idx), bEnable); //Update RecalLayout(); }