| 420 | } |
| 421 | |
| 422 | bool 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 | |
| 435 | void CMainFrame::OnContextMenu(HWND hWnd, CPoint pt) |
| 436 | { |
nothing calls this directly
no outgoing calls
no test coverage detected