MCPcopy Create free account
hub / github.com/DiscordMessenger/dm / FindMessageByPoint

Method FindMessageByPoint

src/windows/MessageList.cpp:4253–4261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4251}
4252
4253std::list<MessageItem>::iterator MessageList::FindMessageByPoint(POINT pt)
4254{
4255 for (auto iter = m_messages.rbegin(); iter != m_messages.rend(); ++iter)
4256 {
4257 if (PtInRect(&iter->m_rect, pt))
4258 return --iter.base();
4259 }
4260 return m_messages.end();
4261}
4262
4263std::list<MessageItem>::iterator MessageList::FindMessageByPointAuthorRect(POINT pt)
4264{

Callers 1

WndProcMethod · 0.80

Calls 2

baseMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected