[FONTVIEW] Broadcast WM_FONTCHANGE message (#1815)

We have to send WM_FONTCHANGE message when the font list was changed.
This commit is contained in:
Katayama Hirofumi MZ 2019-08-08 21:41:15 +09:00 committed by GitHub
parent 65e4efd475
commit f7e39f7d2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);