MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / run_handler

Method run_handler

win32/winapp.cpp:587–596  ·  view source on GitHub ↗

Run handler for message (added by add_handler)

Source from the content-addressed store, hash-verified

585
586// Run handler for message (added by add_handler)
587bool 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
598void oeWin32Application::clear_handlers() {
599 for (MessageFunction &rMsgFn : m_MsgFn)

Callers 2

OnActivateAppMethod · 0.80
MyWndProcFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected