Finishing touches
This commit is contained in:
parent
89c76d0a9c
commit
394ff966ba
BIN
WatchfulEye/res/watchful-eye.ico
Normal file
BIN
WatchfulEye/res/watchful-eye.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 101 KiB |
@ -124,6 +124,16 @@ BEGIN
|
||||
END
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Icon
|
||||
//
|
||||
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
IDI_ICONMAIN ICON "res\\watchful-eye.ico"
|
||||
|
||||
#endif // English (United States) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
@ -63,7 +63,6 @@ namespace watchfuleye {
|
||||
app = reinterpret_cast<Application*>(lParam);
|
||||
|
||||
SetWindowText(dlg, app->m_appName.c_str());
|
||||
SendMessage(dlg, WM_SETICON, ICON_BIG, reinterpret_cast<LPARAM>(LoadIcon(NULL, MAKEINTRESOURCE(IDI_APPLICATION))));
|
||||
|
||||
// Spawn in the lower right corner of the virtual screen (might be problematic in some cases)
|
||||
int cornerX = GetSystemMetrics(SM_XVIRTUALSCREEN) + GetSystemMetrics(SM_CXVIRTUALSCREEN);
|
||||
@ -75,11 +74,11 @@ namespace watchfuleye {
|
||||
// Set up UI
|
||||
LOGFONT lFont = {};
|
||||
strcpy(lFont.lfFaceName, "Consolas");
|
||||
lFont.lfHeight = 45;
|
||||
lFont.lfHeight = 35;
|
||||
HFONT upperFont = CreateFontIndirect(&lFont);
|
||||
SendMessage(GetDlgItem(dlg, IDC_STATICLOWER), WM_SETFONT, reinterpret_cast<WPARAM>(upperFont), NULL);
|
||||
|
||||
lFont.lfHeight = 200;
|
||||
lFont.lfHeight = 180;
|
||||
lFont.lfWeight = FW_BOLD;
|
||||
timeFont = CreateFontIndirect(&lFont);
|
||||
|
||||
@ -227,7 +226,7 @@ namespace watchfuleye {
|
||||
iconData.hWnd = m_mainDlg;
|
||||
iconData.uFlags = NIF_MESSAGE | NIF_ICON | NIF_TIP;
|
||||
iconData.uCallbackMessage = WM_TRAYICON;
|
||||
iconData.hIcon = LoadIcon(NULL, MAKEINTRESOURCE(IDI_APPLICATION));
|
||||
iconData.hIcon = LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_ICONMAIN));
|
||||
strcpy(iconData.szTip, m_appName.c_str());
|
||||
Shell_NotifyIcon(NIM_ADD, &iconData);
|
||||
}
|
||||
|
||||
@ -11,8 +11,10 @@ processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
||||
|
||||
#define APPNAME "Watchful Eye"
|
||||
|
||||
#define MAX_MINUTES 1
|
||||
#define DRIVE_TO_DETECT "E:"
|
||||
// ======== Configuration ========
|
||||
#define MAX_MINUTES 15
|
||||
#define DRIVE_TO_DETECT "D:"
|
||||
// ===============================
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
{
|
||||
|
||||
@ -3,13 +3,14 @@
|
||||
// Used by C:\Users\Grayson\Documents\Visual Studio 18\Solutions\watchful-eye\WatchfulEye\resource.rc
|
||||
//
|
||||
#define IDD_DIALOGMAIN 101
|
||||
#define IDI_ICONMAIN 103
|
||||
#define IDC_STATICLOWER 1000
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 103
|
||||
#define _APS_NEXT_RESOURCE_VALUE 104
|
||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||
#define _APS_NEXT_CONTROL_VALUE 1001
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user