1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-02-09 16:36:34 +00:00

Further cosmetic tweaks to file-selection boxes per observed conventions

on Windows:
 - Change "AllFiles" to "All Files (*.*)"
 - Extensions in lower case

[originally from svn r2748]
This commit is contained in:
Jacob Nevins 2003-01-29 16:39:18 +00:00
parent 52882fa006
commit 01b8739894
3 changed files with 10 additions and 9 deletions

View File

@ -1250,8 +1250,8 @@ static void prompt_add_keyfile(void)
of.lStructSize = sizeof(of); of.lStructSize = sizeof(of);
#endif #endif
of.hwndOwner = main_hwnd; of.hwndOwner = main_hwnd;
of.lpstrFilter = "PuTTY Private Key Files (*.ppk)\0*.PPK\0" of.lpstrFilter = "PuTTY Private Key Files (*.ppk)\0*.ppk\0"
"AllFiles\0*\0\0\0"; "All Files (*.*)\0*\0\0\0";
of.lpstrCustomFilter = NULL; of.lpstrCustomFilter = NULL;
of.nFilterIndex = 1; of.nFilterIndex = 1;
of.lpstrFile = filelist; of.lpstrFile = filelist;

View File

@ -202,11 +202,11 @@ static int prompt_keyfile(HWND hwnd, char *dlgtitle,
#endif #endif
of.hwndOwner = hwnd; of.hwndOwner = hwnd;
if (ppk) { if (ppk) {
of.lpstrFilter = "PuTTY Private Key Files (*.ppk)\0*.PPK\0" of.lpstrFilter = "PuTTY Private Key Files (*.ppk)\0*.ppk\0"
"All Files\0*\0\0\0"; "All Files (*.*)\0*\0\0\0";
of.lpstrDefExt = ".ppk"; of.lpstrDefExt = ".ppk";
} else { } else {
of.lpstrFilter = "All Files\0*\0\0\0"; of.lpstrFilter = "All Files (*.*)\0*\0\0\0";
} }
of.lpstrCustomFilter = NULL; of.lpstrCustomFilter = NULL;
of.nFilterIndex = 1; of.nFilterIndex = 1;

View File

@ -2847,7 +2847,8 @@ static int GenericMainDlgProc(HWND hwnd, UINT msg,
of.lStructSize = sizeof(of); of.lStructSize = sizeof(of);
#endif #endif
of.hwndOwner = hwnd; of.hwndOwner = hwnd;
of.lpstrFilter = "Wave Files\0*.WAV\0AllFiles\0*\0\0\0"; of.lpstrFilter = "Wave Files (*.wav)\0*.WAV\0"
"All Files (*.*)\0*\0\0\0";
of.lpstrCustomFilter = NULL; of.lpstrCustomFilter = NULL;
of.nFilterIndex = 1; of.nFilterIndex = 1;
of.lpstrFile = filename; of.lpstrFile = filename;
@ -3100,7 +3101,7 @@ static int GenericMainDlgProc(HWND hwnd, UINT msg,
of.lStructSize = sizeof(of); of.lStructSize = sizeof(of);
#endif #endif
of.hwndOwner = hwnd; of.hwndOwner = hwnd;
of.lpstrFilter = "All Files\0*\0\0\0"; of.lpstrFilter = "All Files (*.*)\0*\0\0\0";
of.lpstrCustomFilter = NULL; of.lpstrCustomFilter = NULL;
of.nFilterIndex = 1; of.nFilterIndex = 1;
of.lpstrFile = filename; of.lpstrFile = filename;
@ -3328,8 +3329,8 @@ static int GenericMainDlgProc(HWND hwnd, UINT msg,
of.lStructSize = sizeof(of); of.lStructSize = sizeof(of);
#endif #endif
of.hwndOwner = hwnd; of.hwndOwner = hwnd;
of.lpstrFilter = "PuTTY Private Key Files (*.ppk)\0*.PPK\0" of.lpstrFilter = "PuTTY Private Key Files (*.ppk)\0*.ppk\0"
"AllFiles\0*\0\0\0"; "All Files (*.*)\0*\0\0\0";
of.lpstrCustomFilter = NULL; of.lpstrCustomFilter = NULL;
of.nFilterIndex = 1; of.nFilterIndex = 1;
of.lpstrFile = filename; of.lpstrFile = filename;