MCPcopy Create free account
hub / github.com/bbbradsmith/nsfplay / ProcessMessageFilter

Method ProcessMessageFilter

nsfplay/nsfplay.cpp:136–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136BOOL CnsfplayApp::ProcessMessageFilter(int code, LPMSG lpMsg)
137{
138 // keyboard player commands
139 if(m_hAccel!= NULL && m_pDlg->m_hWnd == ::GetForegroundWindow())
140 {
141 if(::TranslateAccelerator(m_pMainWnd -> m_hWnd, m_hAccel, lpMsg))
142 {
143 //return TRUE;
144 // allowing keyboard messages to pass through (no need to block)
145 }
146 }
147 return CWinApp::ProcessMessageFilter(code, lpMsg);
148}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected