MCPcopy Create free account
hub / github.com/Tencent/MMKV / MessageHandler

Method MessageHandler

flutter/mmkv/example/windows/runner/flutter_window.cpp:50–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50LRESULT
51FlutterWindow::MessageHandler(HWND hwnd, UINT const message,
52 WPARAM const wparam,
53 LPARAM const lparam) noexcept {
54 // Give Flutter, including plugins, an opportunity to handle window messages.
55 if (flutter_controller_) {
56 std::optional<LRESULT> result =
57 flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam,
58 lparam);
59 if (result) {
60 return *result;
61 }
62 }
63
64 switch (message) {
65 case WM_FONTCHANGE:
66 flutter_controller_->engine()->ReloadSystemFonts();
67 break;
68 }
69
70 return Win32Window::MessageHandler(hwnd, message, wparam, lparam);
71}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected