| 282 | } |
| 283 | |
| 284 | BOOL GetItem(LPTVITEM pItem) const |
| 285 | { |
| 286 | ATLASSERT(::IsWindow(m_hWnd)); |
| 287 | // On the fly replacement of LPARAM... |
| 288 | BOOL bRes = TBase::GetItem(pItem); |
| 289 | if( bRes && (pItem->mask & TVIF_PARAM) != 0 ) { |
| 290 | IProperty* prop = reinterpret_cast<IProperty*>(TBase::GetItemData(pItem->hItem)); |
| 291 | ATLASSERT(prop); |
| 292 | if( prop == NULL ) return FALSE; |
| 293 | pItem->lParam = prop->GetItemData(); |
| 294 | } |
| 295 | return bRes; |
| 296 | } |
| 297 | |
| 298 | BOOL SetItem(LPTVITEM pItem) |
| 299 | { |
nothing calls this directly
no test coverage detected