void CXTPReportGroupRow::SetSelectedChilds() { for (int I = 0; I < m_pControl->m_pPlainTree->GetCount(); I++) { CXTPReportRow* pTRow = m_pControl->m_pPlainTree->GetAt(I); if (pTRow) { if (pTRow->IsGroupRow()) { CXTPReportGroupRow* pTgRow = (CXTPReportGroupRow*) pTRow; if (pTgRow->GetChilds(FALSE) && pTgRow->IsExpanded()) { for (int J = 0; J < pTgRow->GetChilds()->GetCount(); J++) { CXTPReportRow* pChRow = pTgRow->GetChilds(FALSE)->GetAt(J); if (pChRow) { CXTPReportRecord* pChRec = pChRow->GetRecord(); if (pChRec) pChRec->m_bSelectedAsChildFlag = pChRow->IsSelected(); } } } } } } }
void CXTPReportGroupRow::SetSelectedMostDeepChilds() { for (int II = 0; II < m_pControl->GetRows()->GetCount(); II++) { CXTPReportRow* pRow = m_pControl->GetRows()->GetAt(II); if (pRow->GetChilds(FALSE)) continue; CXTPReportRecord* pChRec = pRow->GetRecord(); if (pChRec) pChRec->m_bSelectedAsChildFlag = pRow->IsSelected(); } }
void CXTPReportGroupRow::SetSelectedMostDeepChilds() { for (int nRow=0; nRow<m_pSection->GetRows()->GetCount(); nRow++) { CXTPReportRow *pRow = m_pSection->GetRows()->GetAt(nRow); if (pRow->GetChilds(FALSE)) continue; CXTPReportRecord *pRecord = pRow->GetRecord(); if (pRecord) { pRecord->SetSelected(pRow->IsSelected()); } } }