Setup UI fonts

This commit is contained in:
grayson committed 2026-06-04 20:20:51 -05:00
1 parent 2d6a972e85
commit cf310dc71c
2 files changed
+14 -2

No files matched your search

+12
View File
@@ -51,6 +51,18 @@ namespace watchfuleye {
taskbarCreatedMessage = RegisterWindowMessage("TaskbarCreated");
// Set up UI
LOGFONT lFont = {};
strcpy(lFont.lfFaceName, "Consolas");
lFont.lfHeight = 50;
HFONT upperFont = CreateFontIndirect(&lFont);
SendMessage(GetDlgItem(dlg, IDC_STATICUPPER), WM_SETFONT, reinterpret_cast<WPARAM>(upperFont), NULL);
lFont.lfHeight = 200;
HFONT timeFont = CreateFontIndirect(&lFont);
SendMessage(GetDlgItem(dlg, IDC_STATICTIME), WM_SETFONT, reinterpret_cast<WPARAM>(timeFont), NULL);
return TRUE;
}