MCPcopy Create free account
hub / github.com/OldJii/ring_layout / MessageHandler

Method MessageHandler

example/windows/runner/flutter_window.cpp:40–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40LRESULT
41FlutterWindow::MessageHandler(HWND hwnd, UINT const message,
42 WPARAM const wparam,
43 LPARAM const lparam) noexcept {
44 // Give Flutter, including plugins, an opportunity to handle window messages.
45 if (flutter_controller_) {
46 std::optional<LRESULT> result =
47 flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam,
48 lparam);
49 if (result) {
50 return *result;
51 }
52 }
53
54 switch (message) {
55 case WM_FONTCHANGE:
56 flutter_controller_->engine()->ReloadSystemFonts();
57 break;
58 }
59
60 return Win32Window::MessageHandler(hwnd, message, wparam, lparam);
61}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected