| 221 | } |
| 222 | |
| 223 | void SListViewItemLocatorFlex::OnDataSetChanged() |
| 224 | { |
| 225 | Clear(); |
| 226 | if(m_adapter) |
| 227 | { |
| 228 | int nTreeSize = m_adapter->getCount(); |
| 229 | int nBranchSize = SEGMENT_SIZE; |
| 230 | int nTreeDeep = GetIndexDeep(); |
| 231 | for(int i=0;i<nTreeDeep;i++) |
| 232 | nBranchSize *= INDEX_WIDTH; |
| 233 | InitIndex(STVI_ROOT,nTreeSize,nBranchSize); |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | void SListViewItemLocatorFlex::InitIndex(HSTREEITEM hParent,int nItems,int nBranchSize) |
| 238 | { |
no test coverage detected