Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/auth.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 7634 by zmatsuo, Sun Apr 28 15:42:38 2019 UTC revision 7635 by zmatsuo, Mon Apr 29 16:22:21 2019 UTC
# Line 1056  canceled: Line 1056  canceled:
1056    
1057                  case IDC_SSHPASSWORD_OPTION: {                  case IDC_SSHPASSWORD_OPTION: {
1058                          TCHAR uimsg[MAX_UIMSG];                          TCHAR uimsg[MAX_UIMSG];
1059                            RECT rect;
1060                            HWND hWndButton;
1061                            int result;
1062                          HMENU hMenu= CreatePopupMenu();                          HMENU hMenu= CreatePopupMenu();
1063                          GetI18nStrT("TTSSH", "DLG_AUTH_PASTE_CLIPBOARD",                          GetI18nStrT("TTSSH", "DLG_AUTH_PASTE_CLIPBOARD",
1064                                                  uimsg, _countof(uimsg),                                                  uimsg, _countof(uimsg),
# Line 1077  canceled: Line 1080  canceled:
1080                                                  "&Show passphrase",                                                  "&Show passphrase",
1081                                                  pvar->ts->UILanguageFile);                                                  pvar->ts->UILanguageFile);
1082                          AppendMenu(hMenu, MF_ENABLED | MF_STRING | (ShowPassPhrase ? MFS_CHECKED : 0), 4, uimsg);                          AppendMenu(hMenu, MF_ENABLED | MF_STRING | (ShowPassPhrase ? MFS_CHECKED : 0), 4, uimsg);
1083                          RECT rect;                          hWndButton = GetDlgItem(dlg, IDC_SSHPASSWORD_OPTION);
                         HWND hWndButton = GetDlgItem(dlg, IDC_SSHPASSWORD_OPTION);  
1084                          GetWindowRect(hWndButton, &rect);                          GetWindowRect(hWndButton, &rect);
1085                          int result = TrackPopupMenu(hMenu, TPM_RETURNCMD, rect.left, rect.bottom, 0 , hWndButton, NULL);                          result = TrackPopupMenu(hMenu, TPM_RETURNCMD, rect.left, rect.bottom, 0 , hWndButton, NULL);
1086                          DestroyMenu(hMenu);                          DestroyMenu(hMenu);
1087                          switch(result) {                          switch(result) {
1088                          case 1:                          case 1:
# Line 1139  canceled: Line 1141  canceled:
1141    
1142                  case IDC_USERNAME_OPTION: {                  case IDC_USERNAME_OPTION: {
1143                          TCHAR uimsg[MAX_UIMSG];                          TCHAR uimsg[MAX_UIMSG];
1144                            RECT rect;
1145                            HWND hWndButton;
1146                          HMENU hMenu= CreatePopupMenu();                          HMENU hMenu= CreatePopupMenu();
1147                            int result;
1148                          GetI18nStrT("TTSSH", "DLG_AUTH_PASTE_WINDOWS_USERNAME",                          GetI18nStrT("TTSSH", "DLG_AUTH_PASTE_WINDOWS_USERNAME",
1149                                                  uimsg, _countof(uimsg),                                                  uimsg, _countof(uimsg),
1150                                                  "Paste &Windows username",                                                  "Paste &Windows username",
1151                                                  pvar->ts->UILanguageFile);                                                  pvar->ts->UILanguageFile);
1152                          AppendMenu(hMenu, MF_ENABLED | MF_STRING, 1, uimsg);                          AppendMenu(hMenu, MF_ENABLED | MF_STRING, 1, uimsg);
1153                          RECT rect;                          hWndButton = GetDlgItem(dlg, IDC_USERNAME_OPTION);
                         HWND hWndButton = GetDlgItem(dlg, IDC_USERNAME_OPTION);  
1154                          GetWindowRect(hWndButton, &rect);                          GetWindowRect(hWndButton, &rect);
1155                          int result = TrackPopupMenu(hMenu, TPM_RETURNCMD, rect.left, rect.bottom, 0 , hWndButton, NULL);                          result = TrackPopupMenu(hMenu, TPM_RETURNCMD, rect.left, rect.bottom, 0 , hWndButton, NULL);
1156                          DestroyMenu(hMenu);                          DestroyMenu(hMenu);
1157                          switch (result) {                          switch (result) {
1158                          case 1: {                          case 1: {

Legend:
Removed from v.7634  
changed lines
  Added in v.7635

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26