Run handler for message (added by add_handler)
| 585 | |
| 586 | // Run handler for message (added by add_handler) |
| 587 | bool oeWin32Application::run_handler(HWnd wnd, unsigned msg, WParam wParam, LParam lParam) { |
| 588 | // run user-defined message handlers |
| 589 | // the guess here is that any callback that returns a 0, will not want to handle the window's WndProc function. |
| 590 | for (const MessageFunction &rMsgFn : m_MsgFn) |
| 591 | if (msg == rMsgFn.msg && rMsgFn.fn) |
| 592 | if (!(*rMsgFn.fn)(wnd, msg, wParam, lParam)) |
| 593 | return false; |
| 594 | |
| 595 | return true; |
| 596 | } |
| 597 | |
| 598 | void oeWin32Application::clear_handlers() { |
| 599 | for (MessageFunction &rMsgFn : m_MsgFn) |
no outgoing calls
no test coverage detected