https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f7e39f7d2ad68b26cce7d…
commit f7e39f7d2ad68b26cce7d3e3cbc4bf6867bd564c
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Thu Aug 8 21:41:15 2019 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Thu Aug 8 21:41:15 2019 +0900
[FONTVIEW] Broadcast WM_FONTCHANGE message (#1815)
We have to send WM_FONTCHANGE message when the font list was changed.
---
base/applications/fontview/fontview.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/base/applications/fontview/fontview.c
b/base/applications/fontview/fontview.c
index fe0bf8aa304..1deac6e8db2 100644
--- a/base/applications/fontview/fontview.c
+++ b/base/applications/fontview/fontview.c
@@ -515,6 +515,9 @@ MainWnd_OnInstall(HWND hwnd)
/* Close the fonts key */
RegCloseKey(hKey);
+ /* Broadcast WM_FONTCHANGE message */
+ SendMessageW(HWND_BROADCAST, WM_FONTCHANGE, 0, 0);
+
/* if all of this goes correctly, message the user about success */
MessageBoxW(hwnd, L"Font Installation Completed.", L"Success",
MB_OK);