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

Function SetCheckState

Libraries/PropertyGrid/PropertyTree.h:364–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362 }
363
364 BOOL SetCheckState(HTREEITEM hItem, BOOL bCheck)
365 {
366 ATLASSERT(::IsWindow(m_hWnd));
367 IProperty* prop = reinterpret_cast<IProperty*>(TBase::GetItemData(hItem));
368 ATLASSERT(prop);
369 ATLASSERT(prop->GetKind()==PROPKIND_CHECK);
370 if( prop == NULL ) return FALSE;
371 if( prop->GetKind() != PROPKIND_CHECK ) return FALSE;
372 // Refresh image
373 CComVariant v = (bCheck == TRUE);
374 if( !prop->SetValue(v) ) return FALSE;
375 _InvalidateItem(hItem);
376 return TRUE;
377 }
378
379 BOOL IsItemEnabled(HTREEITEM hItem) const
380 {

Callers 1

OnSetCheckStateFunction · 0.85

Calls 4

GetItemDataFunction · 0.70
_InvalidateItemFunction · 0.70
GetKindMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected