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

Method OnMouseWheel

SOUI/src/control/SListView.cpp:700–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

698 }
699
700 BOOL SListView::OnMouseWheel(UINT nFlags, short zDelta, CPoint pt)
701 {
702 SItemPanel *pSelItem = GetItemPanel(m_iSelItem);
703 if(pSelItem)
704 {
705 CRect rcItem = pSelItem->GetItemRect();
706 CPoint pt2=pt-rcItem.TopLeft();
707 if(pSelItem->DoFrameEvent(WM_MOUSEWHEEL,MAKEWPARAM(nFlags,zDelta),MAKELPARAM(pt2.x,pt2.y)))
708 return TRUE;
709 }
710 return __super::OnMouseWheel(nFlags, zDelta, pt);
711 }
712
713 int SListView::GetScrollLineSize(BOOL bVertical)
714 {

Callers

nothing calls this directly

Calls 2

GetItemRectMethod · 0.45
DoFrameEventMethod · 0.45

Tested by

no test coverage detected