From a4995800c9f2b14d6f64c01ad4747527ece21030 Mon Sep 17 00:00:00 2001 From: Chun-Heng Tai Date: Mon, 16 Sep 2019 13:19:25 -0700 Subject: [PATCH] added windows system fonts listener --- example/windows/win32_window.cc | 5 +++++ testbed/windows/win32_window.cc | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/example/windows/win32_window.cc b/example/windows/win32_window.cc index 4441933f4..d79b4e0a9 100644 --- a/example/windows/win32_window.cc +++ b/example/windows/win32_window.cc @@ -114,6 +114,11 @@ Win32Window::MessageHandler(HWND hwnd, UINT const message, WPARAM const wparam, SetFocus(child_content_); } return 0; + + // Messages that are directly forwarded to embedding. + case WM_FONTCHANGE: + SendMessage(child_content_, WM_FONTCHANGE, NULL, NULL); + return 0; } return DefWindowProc(window_handle_, message, wparam, lparam); diff --git a/testbed/windows/win32_window.cc b/testbed/windows/win32_window.cc index 4441933f4..d79b4e0a9 100644 --- a/testbed/windows/win32_window.cc +++ b/testbed/windows/win32_window.cc @@ -114,6 +114,11 @@ Win32Window::MessageHandler(HWND hwnd, UINT const message, WPARAM const wparam, SetFocus(child_content_); } return 0; + + // Messages that are directly forwarded to embedding. + case WM_FONTCHANGE: + SendMessage(child_content_, WM_FONTCHANGE, NULL, NULL); + return 0; } return DefWindowProc(window_handle_, message, wparam, lparam);