Setup UI fonts
This commit is contained in:
2 files changed
+14
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user