| 963 | } |
| 964 | |
| 965 | LRESULT 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 | |
| 991 | void CLogView::ClearView() |
| 992 | { |
nothing calls this directly
no outgoing calls
no test coverage detected