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

Function _GetInplaceRect

Libraries/PropertyGrid/PropertyTree.h:432–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430 }
431
432 void _GetInplaceRect(HTREEITEM iItem, RECT* pRect) const
433 {
434 ATLASSERT(iItem);
435 ATLASSERT(pRect);
436 RECT rcText = { 0 };
437 GetItemRect(iItem, &rcText, TRUE);
438 RECT rcItem = { 0 };
439 GetItemRect(iItem, &rcItem, FALSE);
440 ::SetRect(pRect, rcText.right + HORIZ_VALUE_GAP, rcItem.top, rcItem.right, rcItem.bottom);
441 if( m_cxColumn>0 ) pRect->left = max( (int) pRect->left, m_cxColumn );
442 }
443
444 void _DestroyInplaceWindow()
445 {

Callers 2

_SpawnInplaceWindowFunction · 0.85
DrawTreeItemFunction · 0.85

Calls 1

GetItemRectFunction · 0.85

Tested by

no test coverage detected