MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / SetItemValue

Function SetItemValue

Libraries/PropertyGrid/PropertyTree.h:318–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

GetItemDataFunction · 0.70
_InvalidateItemFunction · 0.70
_SpawnInplaceWindowFunction · 0.70
SetValueMethod · 0.45

Tested by

no test coverage detected