diff --git a/WatchfulEye/resource.rc b/WatchfulEye/resource.rc index 32d1735..c6eb1f4 100644 --- a/WatchfulEye/resource.rc +++ b/WatchfulEye/resource.rc @@ -54,8 +54,8 @@ EXSTYLE WS_EX_TOPMOST CAPTION "Dialog" FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN - CTEXT "00:00",IDC_STATICTIME,17,27,266,60,SS_CENTERIMAGE,WS_EX_TRANSPARENT - CTEXT "Time left on tester:",IDC_STATICUPPER,54,4,190,22,SS_CENTERIMAGE,WS_EX_TRANSPARENT + CTEXT "00:00",IDC_STATICTIME,17,35,266,60,SS_CENTERIMAGE,WS_EX_TRANSPARENT + CTEXT "Time left on tester:",IDC_STATICUPPER,7,4,286,22,SS_CENTERIMAGE,WS_EX_TRANSPARENT END diff --git a/WatchfulEye/src/Application.cpp b/WatchfulEye/src/Application.cpp index cc13758..971e338 100644 --- a/WatchfulEye/src/Application.cpp +++ b/WatchfulEye/src/Application.cpp @@ -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(upperFont), NULL); + + lFont.lfHeight = 200; + HFONT timeFont = CreateFontIndirect(&lFont); + SendMessage(GetDlgItem(dlg, IDC_STATICTIME), WM_SETFONT, reinterpret_cast(timeFont), NULL); + + return TRUE; }