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

Function SetItemValue

Libraries/PropertyGrid/PropertyGrid.h:347–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345 }
346
347 BOOL SetItemValue(HPROPERTY hProp, VARIANT* pValue)
348 {
349 ATLASSERT(::IsWindow(m_hWnd));
350 ATLASSERT(hProp);
351 ATLASSERT(pValue);
352 if( hProp == NULL || pValue == NULL ) return FALSE;
353 // Assign value and repaint
354 BOOL bRes = hProp->SetValue(*pValue);
355 // Find property position and repaint it...
356 int nItem = -1, nSubItem = -1;
357 if( !FindProperty(hProp, nItem, nSubItem) ) return FALSE;
358 _InvalidateItem(nItem, nSubItem);
359 // If changing selected item then recreate in-place editor
360 if( (m_hwndInplace != NULL) && (nItem == m_iInplaceRow) && (nSubItem == m_iInplaceCol) ) _SpawnInplaceWindow(hProp, m_iInplaceRow, m_iInplaceCol);
361 return bRes;
362 }
363
364 int GetSelectedColumn() const
365 {

Callers

nothing calls this directly

Calls 4

FindPropertyFunction · 0.70
_InvalidateItemFunction · 0.70
_SpawnInplaceWindowFunction · 0.70
SetValueMethod · 0.45

Tested by

no test coverage detected