void CRollupCtrl::RemoveAllPages() { for (; m_PageList.size();) _RemovePage( m_PageList[0]->id ); RecalLayout(); }
//--------------------------------------------------------------------------- // Function name : RemoveAllPages // Description : //--------------------------------------------------------------------------- void CRollupCtrl::RemoveAllPages() { //Remove all while (m_PageList.GetSize()) _RemovePage(0); //Update RecalLayout(); }
void CRollupCtrl::RemovePage(int idx) { if (!FindPage(idx)) return; _RemovePage(idx); RecalLayout(); }
//--------------------------------------------------------------------------- // Function name : RemovePage // Description : //--------------------------------------------------------------------------- void CRollupCtrl::RemovePage(int idx) { if (idx>=m_PageList.GetSize() || idx<0) return; //Remove _RemovePage(idx); //Update RecalLayout(); }