MCPcopy Create free account
hub / github.com/SOUI2/soui / OnItemGetRect

Method OnItemGetRect

SOUI/src/control/SListView.cpp:461–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459 }
460
461 BOOL SListView::OnItemGetRect(SItemPanel *pItem,CRect &rcItem)
462 {
463 int iPosition = (int)pItem->GetItemIndex();
464 int nOffset = m_lvItemLocator->Item2Position(iPosition)-m_siVer.nPos;
465 rcItem = GetClientRect();
466 rcItem.top += nOffset;
467 rcItem.bottom = rcItem.top + m_lvItemLocator->GetItemHeight(iPosition);
468 return TRUE;
469 }
470
471 void SListView::OnItemSetCapture(SItemPanel *pItem,BOOL bCapture)
472 {

Callers 2

GetContainerRectMethod · 0.45
GetItemRectMethod · 0.45

Calls 3

GetClientRectFunction · 0.85
Item2PositionMethod · 0.45
GetItemHeightMethod · 0.45

Tested by

no test coverage detected