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

Function _FindProperty

Libraries/PropertyGrid/PropertyTree.h:415–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413 }
414
415 HTREEITEM _FindProperty(HPROPERTY prop, HTREEITEM hItem = NULL) const
416 {
417 if( hItem == NULL ) hItem = GetRootItem();
418 while( hItem != NULL ) {
419 if( TBase::GetItemData(hItem) == (DWORD_PTR) prop ) return hItem;
420 // Recurse into children
421 HTREEITEM hChild = GetChildItem(hItem);
422 if( hChild != NULL ) {
423 hChild = _FindProperty(prop, hChild);
424 if( hChild && (TBase::GetItemData(hChild) == (DWORD_PTR) prop) ) return hChild;
425 }
426 // Get next sibling
427 hItem = GetNextSiblingItem(hItem);
428 }
429 return NULL;
430 }
431
432 void _GetInplaceRect(HTREEITEM iItem, RECT* pRect) const
433 {

Callers 2

OnCancelPropertyFunction · 0.85
OnChangedPropertyFunction · 0.85

Calls 1

GetItemDataFunction · 0.70

Tested by

no test coverage detected