| 316 | } |
| 317 | |
| 318 | BOOL SetItemValue(HTREEITEM hItem, VARIANT* pValue) |
| 319 | { |
| 320 | ATLASSERT(::IsWindow(m_hWnd)); |
| 321 | ATLASSERT(pValue); |
| 322 | IProperty* prop = reinterpret_cast<IProperty*>(TBase::GetItemData(hItem)); |
| 323 | ATLASSERT(prop); |
| 324 | if( prop == NULL ) return FALSE; |
| 325 | // Assign value and repaint |
| 326 | BOOL bRes = prop->SetValue(*pValue); |
| 327 | _InvalidateItem(hItem); |
| 328 | // If changing selected item then recreate in-place editor |
| 329 | if( m_iInplaceIndex && (GetSelectedItem() == m_iInplaceIndex) ) _SpawnInplaceWindow(prop, m_iInplaceIndex); |
| 330 | return bRes; |
| 331 | } |
| 332 | |
| 333 | DWORD_PTR GetItemData(HTREEITEM hItem) const |
| 334 | { |
nothing calls this directly
no test coverage detected