inetcpl.cpl: Add ability to delete Temporary Internet Files.
This commit is contained in:
parent
fa19e1bdb3
commit
f9ef35ea6a
|
@ -1,6 +1,6 @@
|
|||
MODULE = inetcpl.cpl
|
||||
IMPORTS = comctl32 shlwapi user32 advapi32
|
||||
DELAYIMPORTS = cryptui
|
||||
DELAYIMPORTS = cryptui wininet
|
||||
|
||||
C_SRCS = \
|
||||
content.c \
|
||||
|
|
|
@ -39,6 +39,11 @@ BEGIN
|
|||
PUSHBUTTON "A&ktuelle Seite", IDC_HOME_CURRENT, 58, 36, 80, 14
|
||||
PUSHBUTTON "&Standardseite", IDC_HOME_DEFAULT, 144, 36, 80, 14
|
||||
PUSHBUTTON "&Leere Seite", IDC_HOME_BLANK, 230, 36, 80, 14
|
||||
GROUPBOX " Browsing history ", IDC_STATIC, 4, 60, 312, 46
|
||||
LTEXT "You can delete cached pages, cookies and other data.",
|
||||
IDC_STATIC, 58, 72, 252, 10
|
||||
PUSHBUTTON "Delete &files...", IDC_HISTORY_DELETE, 144, 86, 80, 14
|
||||
PUSHBUTTON "&Settings...", IDC_HISTORY_SETTINGS, 230, 86, 80, 14
|
||||
|
||||
END
|
||||
|
||||
|
|
|
@ -37,6 +37,33 @@ BEGIN
|
|||
PUSHBUTTON "&Current page", IDC_HOME_CURRENT, 58, 36, 80, 14
|
||||
PUSHBUTTON "&Default page", IDC_HOME_DEFAULT, 144, 36, 80, 14
|
||||
PUSHBUTTON "&Blank page", IDC_HOME_BLANK, 230, 36, 80, 14
|
||||
GROUPBOX " Browsing history ", IDC_STATIC, 4, 60, 312, 46
|
||||
LTEXT "You can delete cached pages, cookies and other data.",
|
||||
IDC_STATIC, 58, 72, 252, 10
|
||||
PUSHBUTTON "Delete &files...", IDC_HISTORY_DELETE, 144, 86, 80, 14
|
||||
PUSHBUTTON "&Settings...", IDC_HISTORY_SETTINGS, 230, 86, 80, 14
|
||||
|
||||
END
|
||||
|
||||
/* "Delete browsing history" dialog */
|
||||
IDD_DELETE_HISTORY DIALOG 0, 0, 250, 250
|
||||
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
||||
FONT 8, "MS Shell Dlg"
|
||||
CAPTION "Delete browsing history"
|
||||
BEGIN
|
||||
|
||||
AUTOCHECKBOX "Temporary internet files\nCached copies of webpages, images and certificates.",
|
||||
IDC_DELETE_TEMP_FILES, 10, 8, 230, 30, BS_TOP | BS_MULTILINE
|
||||
AUTOCHECKBOX "Cookies\nFiles saved on your computer by websites, which store things like user preferences and login information.",
|
||||
IDC_DELETE_COOKIES, 10, 38, 230, 30, BS_TOP | BS_MULTILINE
|
||||
AUTOCHECKBOX "History\nList of websites you have accessed.",
|
||||
IDC_DELETE_HISTORY, 10, 68, 230, 30, BS_TOP | BS_MULTILINE
|
||||
AUTOCHECKBOX "Form data\nUsernames and other information you have entered into forms.",
|
||||
IDC_DELETE_FORM_DATA, 10, 98, 230, 30, BS_TOP | BS_MULTILINE
|
||||
AUTOCHECKBOX "Passwords\nSaved passwords you have entered into forms.",
|
||||
IDC_DELETE_PASSWORDS, 10, 128, 230, 30, BS_TOP | BS_MULTILINE
|
||||
DEFPUSHBUTTON "Cancel", IDCANCEL, 185, 230, 60, 15, WS_GROUP
|
||||
PUSHBUTTON "Delete", IDOK, 120, 230, 60, 15, WS_GROUP
|
||||
|
||||
END
|
||||
|
||||
|
|
|
@ -41,6 +41,11 @@ BEGIN
|
|||
PUSHBUTTON "Page &courante", IDC_HOME_CURRENT, 68, 36, 77, 14
|
||||
PUSHBUTTON "Page par &défaut", IDC_HOME_DEFAULT, 151, 36, 77, 14
|
||||
PUSHBUTTON "Page &blanche", IDC_HOME_BLANK, 233, 36, 77, 14
|
||||
GROUPBOX " Browsing history ", IDC_STATIC, 4, 60, 312, 46
|
||||
LTEXT "You can delete cached pages, cookies and other data.",
|
||||
IDC_STATIC, 58, 72, 252, 10
|
||||
PUSHBUTTON "Delete &files...", IDC_HISTORY_DELETE, 144, 86, 80, 14
|
||||
PUSHBUTTON "&Settings...", IDC_HISTORY_SETTINGS, 230, 86, 80, 14
|
||||
|
||||
END
|
||||
|
||||
|
|
|
@ -41,6 +41,11 @@ BEGIN
|
|||
PUSHBUTTON "העמוד ה&נוכחי", IDC_HOME_CURRENT, 58, 36, 80, 14
|
||||
PUSHBUTTON "עמוד &בררת המחדל", IDC_HOME_DEFAULT, 144, 36, 80, 14
|
||||
PUSHBUTTON "עמוד &ריק", IDC_HOME_BLANK, 230, 36, 80, 14
|
||||
GROUPBOX " Browsing history ", IDC_STATIC, 4, 60, 312, 46
|
||||
LTEXT "You can delete cached pages, cookies and other data.",
|
||||
IDC_STATIC, 58, 72, 252, 10
|
||||
PUSHBUTTON "Delete &files...", IDC_HISTORY_DELETE, 144, 86, 80, 14
|
||||
PUSHBUTTON "&Settings...", IDC_HISTORY_SETTINGS, 230, 86, 80, 14
|
||||
|
||||
END
|
||||
|
||||
|
|
|
@ -40,6 +40,11 @@ BEGIN
|
|||
PUSHBUTTON "Pagina &attuale", IDC_HOME_CURRENT, 58, 36, 80, 14
|
||||
PUSHBUTTON "Pagina &predefinita", IDC_HOME_DEFAULT, 144, 36, 80, 14
|
||||
PUSHBUTTON "Pagina &vuota", IDC_HOME_BLANK, 230, 36, 80, 14
|
||||
GROUPBOX " Browsing history ", IDC_STATIC, 4, 60, 312, 46
|
||||
LTEXT "You can delete cached pages, cookies and other data.",
|
||||
IDC_STATIC, 58, 72, 252, 10
|
||||
PUSHBUTTON "Delete &files...", IDC_HISTORY_DELETE, 144, 86, 80, 14
|
||||
PUSHBUTTON "&Settings...", IDC_HISTORY_SETTINGS, 230, 86, 80, 14
|
||||
|
||||
END
|
||||
|
||||
|
|
|
@ -41,6 +41,11 @@ BEGIN
|
|||
PUSHBUTTON "現在のページ(&C)", IDC_HOME_CURRENT, 58, 36, 80, 14
|
||||
PUSHBUTTON "デフォルト(&D)", IDC_HOME_DEFAULT, 144, 36, 80, 14
|
||||
PUSHBUTTON "空白(&B)", IDC_HOME_BLANK, 230, 36, 80, 14
|
||||
GROUPBOX " Browsing history ", IDC_STATIC, 4, 60, 312, 46
|
||||
LTEXT "You can delete cached pages, cookies and other data.",
|
||||
IDC_STATIC, 58, 72, 252, 10
|
||||
PUSHBUTTON "Delete &files...", IDC_HISTORY_DELETE, 144, 86, 80, 14
|
||||
PUSHBUTTON "&Settings...", IDC_HISTORY_SETTINGS, 230, 86, 80, 14
|
||||
|
||||
END
|
||||
|
||||
|
|
|
@ -40,6 +40,11 @@ BEGIN
|
|||
PUSHBUTTON "현재 페이지(&C)", IDC_HOME_CURRENT, 58, 36, 80, 14
|
||||
PUSHBUTTON "기본 페이지(&D)", IDC_HOME_DEFAULT, 144, 36, 80, 14
|
||||
PUSHBUTTON "빈 페이지(&B)", IDC_HOME_BLANK, 230, 36, 80, 14
|
||||
GROUPBOX " Browsing history ", IDC_STATIC, 4, 60, 312, 46
|
||||
LTEXT "You can delete cached pages, cookies and other data.",
|
||||
IDC_STATIC, 58, 72, 252, 10
|
||||
PUSHBUTTON "Delete &files...", IDC_HISTORY_DELETE, 144, 86, 80, 14
|
||||
PUSHBUTTON "&Settings...", IDC_HISTORY_SETTINGS, 230, 86, 80, 14
|
||||
|
||||
END
|
||||
|
||||
|
|
|
@ -40,6 +40,11 @@ BEGIN
|
|||
PUSHBUTTON "&Dabartinis puslapis", IDC_HOME_CURRENT, 58, 40, 80, 14
|
||||
PUSHBUTTON "&Numatytasis puslapis", IDC_HOME_DEFAULT, 144, 40, 80, 14
|
||||
PUSHBUTTON "&Tuščias puslapis", IDC_HOME_BLANK, 230, 40, 80, 14
|
||||
GROUPBOX " Browsing history ", IDC_STATIC, 4, 60, 312, 46
|
||||
LTEXT "You can delete cached pages, cookies and other data.",
|
||||
IDC_STATIC, 58, 72, 252, 10
|
||||
PUSHBUTTON "Delete &files...", IDC_HISTORY_DELETE, 144, 86, 80, 14
|
||||
PUSHBUTTON "&Settings...", IDC_HISTORY_SETTINGS, 230, 86, 80, 14
|
||||
|
||||
END
|
||||
|
||||
|
|
|
@ -37,6 +37,11 @@ BEGIN
|
|||
PUSHBUTTON "&Huidige pagina", IDC_HOME_CURRENT, 58, 36, 80, 14
|
||||
PUSHBUTTON "&Standaardpagina", IDC_HOME_DEFAULT, 144, 36, 80, 14
|
||||
PUSHBUTTON "&Lege pagina", IDC_HOME_BLANK, 230, 36, 80, 14
|
||||
GROUPBOX " Browsing history ", IDC_STATIC, 4, 60, 312, 46
|
||||
LTEXT "You can delete cached pages, cookies and other data.",
|
||||
IDC_STATIC, 58, 72, 252, 10
|
||||
PUSHBUTTON "Delete &files...", IDC_HISTORY_DELETE, 144, 86, 80, 14
|
||||
PUSHBUTTON "&Settings...", IDC_HISTORY_SETTINGS, 230, 86, 80, 14
|
||||
|
||||
END
|
||||
|
||||
|
|
|
@ -37,6 +37,11 @@ BEGIN
|
|||
PUSHBUTTON "U¿yj &bie¿¹cej", IDC_HOME_CURRENT, 58, 36, 80, 14
|
||||
PUSHBUTTON "U¿yj d&omyœlnej", IDC_HOME_DEFAULT, 144, 36, 80, 14
|
||||
PUSHBUTTON "U¿yj pu&stej", IDC_HOME_BLANK, 230, 36, 80, 14
|
||||
GROUPBOX " Browsing history ", IDC_STATIC, 4, 60, 312, 46
|
||||
LTEXT "You can delete cached pages, cookies and other data.",
|
||||
IDC_STATIC, 58, 72, 252, 10
|
||||
PUSHBUTTON "Delete &files...", IDC_HISTORY_DELETE, 144, 86, 80, 14
|
||||
PUSHBUTTON "&Settings...", IDC_HISTORY_SETTINGS, 230, 86, 80, 14
|
||||
|
||||
END
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* English resources for the Internet control panel applet
|
||||
* Portuguese resources for the Internet control panel applet
|
||||
*
|
||||
* Copyright 2010 Gustavo Henrique Milaré
|
||||
*
|
||||
|
@ -39,6 +39,11 @@ BEGIN
|
|||
PUSHBUTTON "Página &atual", IDC_HOME_CURRENT, 58, 36, 80, 14
|
||||
PUSHBUTTON "Página &padrão", IDC_HOME_DEFAULT, 144, 36, 80, 14
|
||||
PUSHBUTTON "Página em &branco", IDC_HOME_BLANK, 230, 36, 80, 14
|
||||
GROUPBOX " Browsing history ", IDC_STATIC, 4, 60, 312, 46
|
||||
LTEXT "You can delete cached pages, cookies and other data.",
|
||||
IDC_STATIC, 58, 72, 252, 10
|
||||
PUSHBUTTON "Delete &files...", IDC_HISTORY_DELETE, 144, 86, 80, 14
|
||||
PUSHBUTTON "&Settings...", IDC_HISTORY_SETTINGS, 230, 86, 80, 14
|
||||
|
||||
END
|
||||
|
||||
|
|
|
@ -40,6 +40,11 @@ BEGIN
|
|||
PUSHBUTTON "&Текущая страница", IDC_HOME_CURRENT, 58, 36, 80, 14
|
||||
PUSHBUTTON "&По умолчанию", IDC_HOME_DEFAULT, 144, 36, 80, 14
|
||||
PUSHBUTTON "Пу&стая страница", IDC_HOME_BLANK, 230, 36, 80, 14
|
||||
GROUPBOX " Browsing history ", IDC_STATIC, 4, 60, 312, 46
|
||||
LTEXT "You can delete cached pages, cookies and other data.",
|
||||
IDC_STATIC, 58, 72, 252, 10
|
||||
PUSHBUTTON "Delete &files...", IDC_HISTORY_DELETE, 144, 86, 80, 14
|
||||
PUSHBUTTON "&Settings...", IDC_HISTORY_SETTINGS, 230, 86, 80, 14
|
||||
|
||||
END
|
||||
|
||||
|
|
|
@ -40,6 +40,11 @@ BEGIN
|
|||
PUSHBUTTON "&Текућа страна", IDC_HOME_CURRENT, 58, 36, 80, 14
|
||||
PUSHBUTTON "&Подразумевана страна", IDC_HOME_DEFAULT, 144, 36, 80, 14
|
||||
PUSHBUTTON "Празна &страна", IDC_HOME_BLANK, 230, 36, 80, 14
|
||||
GROUPBOX " Browsing history ", IDC_STATIC, 4, 60, 312, 46
|
||||
LTEXT "You can delete cached pages, cookies and other data.",
|
||||
IDC_STATIC, 58, 72, 252, 10
|
||||
PUSHBUTTON "Delete &files...", IDC_HISTORY_DELETE, 144, 86, 80, 14
|
||||
PUSHBUTTON "&Settings...", IDC_HISTORY_SETTINGS, 230, 86, 80, 14
|
||||
|
||||
END
|
||||
|
||||
|
@ -74,6 +79,11 @@ BEGIN
|
|||
PUSHBUTTON "&Tekuća strana", IDC_HOME_CURRENT, 58, 36, 80, 14
|
||||
PUSHBUTTON "&Podrazumevana strana", IDC_HOME_DEFAULT, 144, 36, 80, 14
|
||||
PUSHBUTTON "Prazna &strana", IDC_HOME_BLANK, 230, 36, 80, 14
|
||||
GROUPBOX " Browsing history ", IDC_STATIC, 4, 60, 312, 46
|
||||
LTEXT "You can delete cached pages, cookies and other data.",
|
||||
IDC_STATIC, 58, 72, 252, 10
|
||||
PUSHBUTTON "Delete &files...", IDC_HISTORY_DELETE, 144, 86, 80, 14
|
||||
PUSHBUTTON "&Settings...", IDC_HISTORY_SETTINGS, 230, 86, 80, 14
|
||||
|
||||
END
|
||||
|
||||
|
|
|
@ -39,6 +39,11 @@ BEGIN
|
|||
PUSHBUTTON "&Aktuell sida", IDC_HOME_CURRENT, 58, 36, 80, 14
|
||||
PUSHBUTTON "&Förvald sida", IDC_HOME_DEFAULT, 144, 36, 80, 14
|
||||
PUSHBUTTON "&Blank sida", IDC_HOME_BLANK, 230, 36, 80, 14
|
||||
GROUPBOX " Browsing history ", IDC_STATIC, 4, 60, 312, 46
|
||||
LTEXT "You can delete cached pages, cookies and other data.",
|
||||
IDC_STATIC, 58, 72, 252, 10
|
||||
PUSHBUTTON "Delete &files...", IDC_HISTORY_DELETE, 144, 86, 80, 14
|
||||
PUSHBUTTON "&Settings...", IDC_HISTORY_SETTINGS, 230, 86, 80, 14
|
||||
|
||||
END
|
||||
|
||||
|
|
|
@ -41,6 +41,11 @@ BEGIN
|
|||
PUSHBUTTON "&Поточна сторінка", IDC_HOME_CURRENT, 58, 36, 80, 14
|
||||
PUSHBUTTON "&За замовчуванням", IDC_HOME_DEFAULT, 144, 36, 80, 14
|
||||
PUSHBUTTON "По&рожня сторінка", IDC_HOME_BLANK, 230, 36, 80, 14
|
||||
GROUPBOX " Browsing history ", IDC_STATIC, 4, 60, 312, 46
|
||||
LTEXT "You can delete cached pages, cookies and other data.",
|
||||
IDC_STATIC, 58, 72, 252, 10
|
||||
PUSHBUTTON "Delete &files...", IDC_HISTORY_DELETE, 144, 86, 80, 14
|
||||
PUSHBUTTON "&Settings...", IDC_HISTORY_SETTINGS, 230, 86, 80, 14
|
||||
|
||||
END
|
||||
|
||||
|
|
|
@ -43,8 +43,88 @@ static const WCHAR reg_ie_main[] = {'S','o','f','t','w','a','r','e','\\',
|
|||
'M','a','i','n',0};
|
||||
|
||||
/* list of unimplemented buttons */
|
||||
static DWORD disable_me[] = {IDC_HOME_CURRENT,
|
||||
IDC_HOME_DEFAULT, 0};
|
||||
static DWORD disabled_general_buttons[] = {IDC_HOME_CURRENT,
|
||||
IDC_HOME_DEFAULT,
|
||||
IDC_HISTORY_SETTINGS,
|
||||
0};
|
||||
static DWORD disabled_delhist_buttons[] = {IDC_DELETE_COOKIES,
|
||||
IDC_DELETE_HISTORY,
|
||||
IDC_DELETE_FORM_DATA,
|
||||
IDC_DELETE_PASSWORDS,
|
||||
0};
|
||||
|
||||
/*********************************************************************
|
||||
* delhist_on_command [internal]
|
||||
*
|
||||
* handle WM_COMMAND in Delete browsing history dialog
|
||||
*
|
||||
*/
|
||||
static INT_PTR delhist_on_command(HWND hdlg, WPARAM wparam)
|
||||
{
|
||||
switch (wparam)
|
||||
{
|
||||
case MAKEWPARAM(IDOK, BN_CLICKED):
|
||||
if (!FreeUrlCacheSpaceW(NULL, 100, FCS_PERCENT_CACHE_SPACE))
|
||||
break; /* Don't close the dialog. */
|
||||
EndDialog(hdlg, IDOK);
|
||||
return TRUE;
|
||||
|
||||
case MAKEWPARAM(IDCANCEL, BN_CLICKED):
|
||||
EndDialog(hdlg, IDCANCEL);
|
||||
return TRUE;
|
||||
|
||||
case MAKEWPARAM(IDC_DELETE_TEMP_FILES, BN_CLICKED):
|
||||
case MAKEWPARAM(IDC_DELETE_COOKIES, BN_CLICKED):
|
||||
case MAKEWPARAM(IDC_DELETE_HISTORY, BN_CLICKED):
|
||||
case MAKEWPARAM(IDC_DELETE_FORM_DATA, BN_CLICKED):
|
||||
case MAKEWPARAM(IDC_DELETE_PASSWORDS, BN_CLICKED):
|
||||
{
|
||||
BOOL any = IsDlgButtonChecked(hdlg, IDC_DELETE_TEMP_FILES) ||
|
||||
IsDlgButtonChecked(hdlg, IDC_DELETE_COOKIES) ||
|
||||
IsDlgButtonChecked(hdlg, IDC_DELETE_HISTORY) ||
|
||||
IsDlgButtonChecked(hdlg, IDC_DELETE_FORM_DATA) ||
|
||||
IsDlgButtonChecked(hdlg, IDC_DELETE_PASSWORDS);
|
||||
EnableWindow(GetDlgItem(hdlg, IDOK), any);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
/*********************************************************************
|
||||
* delhist_dlgproc [internal]
|
||||
*
|
||||
* Delete browsing history dialog procedure
|
||||
*
|
||||
*/
|
||||
static INT_PTR CALLBACK delhist_dlgproc(HWND hdlg, UINT msg, WPARAM wparam, LPARAM lparam)
|
||||
{
|
||||
switch (msg)
|
||||
{
|
||||
case WM_COMMAND:
|
||||
return delhist_on_command(hdlg, wparam);
|
||||
|
||||
case WM_INITDIALOG:
|
||||
{
|
||||
DWORD *ptr = disabled_delhist_buttons;
|
||||
while (*ptr)
|
||||
{
|
||||
EnableWindow(GetDlgItem(hdlg, *ptr), FALSE);
|
||||
ptr++;
|
||||
}
|
||||
CheckDlgButton(hdlg, IDC_DELETE_TEMP_FILES, BST_CHECKED);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* parse_url_from_outside [internal]
|
||||
|
@ -93,6 +173,11 @@ static INT_PTR general_on_command(HWND hwnd, WPARAM wparam)
|
|||
SetDlgItemTextW(hwnd, IDC_HOME_EDIT, about_blank);
|
||||
break;
|
||||
|
||||
case MAKEWPARAM(IDC_HISTORY_DELETE, BN_CLICKED):
|
||||
DialogBoxW(hcpl, MAKEINTRESOURCEW(IDD_DELETE_HISTORY), hwnd,
|
||||
delhist_dlgproc);
|
||||
break;
|
||||
|
||||
default:
|
||||
TRACE("not implemented for command: %d/%d\n", HIWORD(wparam), LOWORD(wparam));
|
||||
return FALSE;
|
||||
|
@ -112,7 +197,7 @@ static VOID general_on_initdialog(HWND hwnd)
|
|||
DWORD len;
|
||||
DWORD type;
|
||||
LONG res;
|
||||
DWORD *ptr = disable_me;
|
||||
DWORD *ptr = disabled_general_buttons;
|
||||
|
||||
/* disable unimplemented buttons */
|
||||
while (*ptr)
|
||||
|
|
|
@ -47,6 +47,15 @@ INT_PTR CALLBACK general_dlgproc(HWND, UINT, WPARAM, LPARAM) DECLSPEC_HIDDEN;
|
|||
#define IDC_HOME_CURRENT 1001
|
||||
#define IDC_HOME_DEFAULT 1002
|
||||
#define IDC_HOME_BLANK 1003
|
||||
#define IDC_HISTORY_DELETE 1004
|
||||
#define IDC_HISTORY_SETTINGS 1005
|
||||
|
||||
#define IDD_DELETE_HISTORY 1010
|
||||
#define IDC_DELETE_TEMP_FILES 1011
|
||||
#define IDC_DELETE_COOKIES 1012
|
||||
#define IDC_DELETE_HISTORY 1013
|
||||
#define IDC_DELETE_FORM_DATA 1014
|
||||
#define IDC_DELETE_PASSWORDS 1015
|
||||
|
||||
#define IDD_CONTENT 4000
|
||||
#define IDC_CERT 4100
|
||||
|
|
Loading…
Reference in New Issue