reinterpret_cast<WPARAM>(dlgData->hTitleFont),
TRUE);
+ HICON hIcon = LoadIcon(
+ GetModuleHandle(NULL),
+ MAKEINTRESOURCE(IDI_TRAY_DARK));
+ SendMessageW(hDlg, WM_SETICON, ICON_BIG, reinterpret_cast<LPARAM>(hIcon));
+
return TRUE;
}
case WM_NOTIFY: {
ResizeTab(dlgData->hTabCtrl, hCurTab);
}
- /*HICON hIcon = LoadIcon(
+ HICON hIcon = LoadIcon(
GetModuleHandle(NULL),
MAKEINTRESOURCE(IDI_SETTINGS));
- SendMessageW(hDlg, WM_SETICON, ICON_BIG, reinterpret_cast<LPARAM>(hIcon));*/
+ SendMessageW(hDlg, WM_SETICON, ICON_BIG, reinterpret_cast<LPARAM>(hIcon));
SwitchTab(dlgData, dlgData->hTabs[SETTINGS_TAB_GENERAL]);
return TRUE;
wmPath,
(lstrlen(wmPath) + 1) * sizeof(TCHAR));
if (regError != ERROR_SUCCESS) {
- PrintWindowsError(_T("RegOpenKeyEx"), regError);
+ PrintWindowsError(_T("RegSetKeyValue"), regError);
}
}
} else {
DWORD regError = RegDeleteKeyValue(hRunKey, NULL, LX_SYSTEMS_AUTOSTART_KEY);
- if (regError != ERROR_SUCCESS) {
- PrintWindowsError(_T("RegOpenKeyEx"), regError);
+ if (regError != ERROR_SUCCESS && regError != ERROR_FILE_NOT_FOUND) {
+ PrintWindowsError(_T("RegDeleteKeyValue"), regError);
}
}
RegCloseKey(hRunKey);
//
IDD_ABOUT DIALOGEX 0, 0, 313, 269
-STYLE DS_SETFONT | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION
+STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About WinMute"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN