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

Method OnMouseWheel

DebugView++/MainFrame.cpp:422–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422bool CMainFrame::OnMouseWheel(UINT nFlags, short zDelta, CPoint /*pt*/)
423{
424 if ((nFlags & MK_CONTROL) == 0)
425 return false;
426
427 int size = static_cast<int>(LogFontSizeToPointSize(m_logfont.lfHeight) * std::pow(1.15, zDelta / WHEEL_DELTA) + 0.5);
428 size = std::max(size, 4);
429 size = std::min(size, 24);
430 m_logfont.lfHeight = LogFontSizeFromPointSize(size);
431 SetLogFont();
432 return true;
433}
434
435void CMainFrame::OnContextMenu(HWND hWnd, CPoint pt)
436{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected