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

Method OnGetDispInfo

DebugView++/LogView.cpp:884–894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

882}
883
884LRESULT CLogView::OnGetDispInfo(NMHDR* pnmh)
885{
886 auto pDispInfo = reinterpret_cast<NMLVDISPINFO*>(pnmh);
887 LVITEM& item = pDispInfo->item;
888 if ((item.mask & LVIF_TEXT) == 0 || item.iItem >= static_cast<int>(m_logLines.size()))
889 return 0;
890
891 m_dispInfoText = WStr(GetColumnText(item.iItem, SubItemToColumn(item.iSubItem))).str();
892 item.pszText = const_cast<wchar_t*>(m_dispInfoText.c_str());
893 return 0;
894}
895
896SelectionInfo CLogView::GetSelectedRange() const
897{

Callers

nothing calls this directly

Calls 4

WStrClass · 0.85
sizeMethod · 0.45
strMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected