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

Method TextHighlightHitTest

DebugView++/LogView.cpp:333–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333int CLogView::TextHighlightHitTest(int iItem, const POINT& pt)
334{
335 int pos = GetTextIndex(iItem, pt.x);
336 auto highlights = GetItemData(iItem).highlights;
337 auto it = highlights.begin();
338 while (it != highlights.end() && it->end <= pos)
339 ++it;
340 if (it != highlights.end() && it->begin <= pos)
341 return it->id;
342 return 0;
343}
344
345void CLogView::OnDropFiles(HDROP hDropInfo)
346{

Callers

nothing calls this directly

Calls 1

GetItemDataFunction · 0.50

Tested by

no test coverage detected