MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / PreTranslateMessage

Method PreTranslateMessage

Source/FrameEditor.cpp:708–722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706}
707
708BOOL CFrameEditor::PreTranslateMessage(MSG* pMsg)
709{
710 // Temporary fix, accelerated messages must be sent to the main window
711 if (FTEnv.GetAccelerator()->Translate(FTEnv.GetMainFrame()->m_hWnd, pMsg)) {
712 return TRUE;
713 }
714
715 if (pMsg->message == WM_KEYDOWN) {
716 OnKeyDown(pMsg->wParam, pMsg->lParam & 0xFFFF, pMsg->lParam & 0xFF0000);
717 // Remove the beep
718 pMsg->message = WM_NULL;
719 }
720
721 return CWnd::PreTranslateMessage(pMsg);
722}
723
724int CFrameEditor::GetRowFromPoint(const CPoint &point, bool DropTarget) const
725{

Callers

nothing calls this directly

Calls 3

TranslateMethod · 0.80
GetAcceleratorMethod · 0.45
GetMainFrameMethod · 0.45

Tested by

no test coverage detected