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

Method OnBeginDrag

DebugView++/LogView.cpp:965–989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

963}
964
965LRESULT CLogView::OnBeginDrag(NMHDR* pnmh)
966{
967 auto& nmhdr = *reinterpret_cast<NMLISTVIEW*>(pnmh);
968
969 LVHITTESTINFO info;
970 info.flags = 0;
971 info.pt = nmhdr.ptAction;
972 SubItemHitTest(&info);
973 if ((info.flags & LVHT_ONITEM) == 0 || info.iSubItem != ColumnToSubItem(Column::Message))
974 {
975 SetMsgHandled(false);
976 return 0;
977 }
978
979 StopTracking();
980
981 SetCapture();
982 m_dragging = true;
983 m_dragStart = nmhdr.ptAction;
984 m_dragStart.x += GetScrollPos(SB_HORZ);
985 m_dragEnd = nmhdr.ptAction;
986 m_dragEnd.x += GetScrollPos(SB_HORZ);
987
988 return 0;
989}
990
991void CLogView::ClearView()
992{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected