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

Method OnItemChanged

DebugView++/LogView.cpp:637–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635}
636
637LRESULT CLogView::OnItemChanged(NMHDR* pnmh)
638{
639 auto& nmhdr = *reinterpret_cast<NMLISTVIEW*>(pnmh);
640
641 if ((nmhdr.uNewState & LVIS_FOCUSED) == 0 ||
642 nmhdr.iItem < 0 ||
643 static_cast<size_t>(nmhdr.iItem) >= m_logLines.size())
644 return 0;
645
646 if (m_autoScrollStop)
647 m_autoScrollDown = nmhdr.iItem == GetItemCount() - 1;
648
649 SetHighlightText();
650 return 0;
651}
652
653RECT CLogView::GetItemRect(int iItem, unsigned code) const
654{

Callers

nothing calls this directly

Calls 2

GetItemCountFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected