| 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 | { |
no test coverage detected