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

Function GetCheckState

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

Source from the content-addressed store, hash-verified

349 }
350
351 BOOL GetCheckState(HTREEITEM hItem) const
352 {
353 ATLASSERT(::IsWindow(m_hWnd));
354 IProperty* prop = reinterpret_cast<IProperty*>(TBase::GetItemData(hItem));
355 ATLASSERT(prop);
356 ATLASSERT(prop->GetKind()==PROPKIND_CHECK);
357 if( prop == NULL ) return FALSE;
358 if( prop->GetKind() != PROPKIND_CHECK ) return FALSE;
359 CComVariant v;
360 prop->GetValue(&v);
361 return v.boolVal != VARIANT_FALSE;
362 }
363
364 BOOL SetCheckState(HTREEITEM hItem, BOOL bCheck)
365 {

Callers

nothing calls this directly

Calls 3

GetItemDataFunction · 0.70
GetKindMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected