MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / OnMonitorPause

Method OnMonitorPause

WinArk/MainFrame.cpp:620–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

618}
619
620LRESULT CMainFrame::OnMonitorPause(WORD, WORD, HWND, BOOL&) {
621 m_tm.Pause(!m_tm.IsPaused());
622 UISetCheck(ID_MONITOR_PAUSE, m_tm.IsPaused());
623 int image = 2;
624 HICON hIcon = m_PauseIcon;
625 if (!m_tm.IsPaused()) {
626 hIcon = m_tm.IsRunning() ? m_RunIcon : m_StopIcon;
627 }
628 SetPaneIcon(1, hIcon);
629 return 0;
630}
631
632BOOL CMainFrame::TrackPopupMenu(HMENU hMenu, HWND hWnd, POINT* pt, UINT flags) {
633 POINT cursorPos;

Callers

nothing calls this directly

Calls 3

IsPausedMethod · 0.80
PauseMethod · 0.45
IsRunningMethod · 0.45

Tested by

no test coverage detected