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

Method OnMouseMove

DebugView++/LogView.cpp:493–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493void CLogView::OnMouseMove(UINT /*flags*/, CPoint point)
494{
495 SetMsgHandled(false);
496 if (!m_dragging)
497 return;
498
499 m_dragEnd = point;
500 m_dragEnd.x += GetScrollPos(SB_HORZ);
501 Invalidate();
502
503 RECT rect;
504 GetClientRect(&rect);
505 if (point.x < rect.left + 32)
506 {
507 if (m_scrollX == 0)
508 SetTimer(1, 25, nullptr);
509 m_scrollX = -8;
510 }
511 else if (point.x > rect.right - 32)
512 {
513 if (m_scrollX == 0)
514 SetTimer(1, 25, nullptr);
515 m_scrollX = +8;
516 }
517 else
518 {
519 if (m_scrollX != 0)
520 {
521 KillTimer(1);
522 m_scrollX = 0;
523 }
524 }
525}
526
527void CLogView::OnLButtonUp(UINT /*flags*/, CPoint point)
528{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected