| 150 | } |
| 151 | |
| 152 | void CBigPoolView::AddTag(const SYSTEM_BIGPOOL_ENTRY& info, int index) { |
| 153 | char tag[5] = { 0 }; |
| 154 | ::CopyMemory(tag, &info.Tag, 4); |
| 155 | auto item = std::make_shared<BigPoolItem>(); |
| 156 | item->Tag = CStringA(tag); |
| 157 | item->Index = index; |
| 158 | item->BigPoolInfo = info; |
| 159 | |
| 160 | if(auto it = m_TagSource.find(item->Tag); it != m_TagSource.end()) { |
| 161 | item->SourceName = it->second.first; |
| 162 | item->SourceDesc = it->second.second; |
| 163 | } |
| 164 | |
| 165 | m_Pools.push_back(item); |
| 166 | m_PoolsMap.insert({ info.TagUlong,item }); |
| 167 | } |
| 168 | |
| 169 | void CBigPoolView::UpdateVisible() { |
| 170 | int page = GetCountPerPage(); |