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

Function SetItemValue

Libraries/PropertyGrid/PropertyList.h:370–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368 }
369
370 BOOL SetItemValue(HPROPERTY prop, VARIANT* pValue)
371 {
372 ATLASSERT(::IsWindow(m_hWnd));
373 ATLASSERT(prop);
374 ATLASSERT(pValue);
375 if( prop == NULL || pValue == NULL ) return FALSE;
376 // Assign value and repaint
377 BOOL bRes = prop->SetValue(*pValue);
378 // Thanks to Daniel Bowen for fixing the recreation of inplace editor here.
379 int idx = FindProperty(prop);
380 if( idx >= 0 ) {
381 InvalidateItem(idx);
382 if( idx == m_iInplaceIndex ) _SpawnInplaceWindow(prop, m_iInplaceIndex);
383 }
384 return bRes;
385 }
386
387 LPARAM GetItemData(HPROPERTY prop) const
388 {

Callers

nothing calls this directly

Calls 4

InvalidateItemFunction · 0.85
FindPropertyFunction · 0.70
_SpawnInplaceWindowFunction · 0.70
SetValueMethod · 0.45

Tested by

no test coverage detected