| 922 |
else /* All com ports are already used */ |
else /* All com ports are already used */ |
| 923 |
GetHNRec->PortType = IdTCPIP; |
GetHNRec->PortType = IdTCPIP; |
| 924 |
|
|
| 925 |
if (GetHNRec->PortType == IdTCPIP) |
if (GetHNRec->PortType == IdTCPIP) { |
| 926 |
enable_dlg_items(dlg, IDC_HOSTCOMLABEL, IDC_HOSTCOM, FALSE); |
enable_dlg_items(dlg, IDC_HOSTCOMLABEL, IDC_HOSTCOM, FALSE); |
| 927 |
|
|
| 928 |
|
enable_dlg_items(dlg, IDC_SSH_VERSION, IDC_SSH_VERSION, TRUE); |
| 929 |
|
enable_dlg_items(dlg, IDC_SSH_VERSION_LABEL, IDC_SSH_VERSION_LABEL, TRUE); |
| 930 |
|
} |
| 931 |
#ifdef INET6 |
#ifdef INET6 |
| 932 |
else { |
else { |
| 933 |
enable_dlg_items(dlg, IDC_HOSTNAMELABEL, IDC_HOSTTCPPORT, |
enable_dlg_items(dlg, IDC_HOSTNAMELABEL, IDC_HOSTTCPPORT, |
| 934 |
FALSE); |
FALSE); |
| 935 |
enable_dlg_items(dlg, IDC_HOSTTCPPROTOCOLLABEL, |
enable_dlg_items(dlg, IDC_HOSTTCPPROTOCOLLABEL, |
| 936 |
IDC_HOSTTCPPROTOCOL, FALSE); |
IDC_HOSTTCPPROTOCOL, FALSE); |
| 937 |
|
|
| 938 |
|
enable_dlg_items(dlg, IDC_SSH_VERSION, IDC_SSH_VERSION, FALSE); // disabled |
| 939 |
|
enable_dlg_items(dlg, IDC_SSH_VERSION_LABEL, IDC_SSH_VERSION_LABEL, FALSE); // disabled (2004.11.23 yutaka) |
| 940 |
} |
} |
| 941 |
#else |
#else |
| 942 |
else |
else |
| 945 |
#endif /* INET6 */ |
#endif /* INET6 */ |
| 946 |
|
|
| 947 |
// Host dialogにフォーカスをあてる (2004.10.2 yutaka) |
// Host dialogにフォーカスをあてる (2004.10.2 yutaka) |
| 948 |
{ |
if (GetHNRec->PortType == IdTCPIP) { |
| 949 |
HWND hwnd = GetDlgItem(dlg, IDC_HOSTNAME); |
HWND hwnd = GetDlgItem(dlg, IDC_HOSTNAME); |
| 950 |
|
SetFocus(hwnd); |
| 951 |
SetFocus(hwnd); |
} else { |
| 952 |
//SendMessage(hwnd, BM_SETCHECK, BST_CHECKED, 0); |
HWND hwnd = GetDlgItem(dlg, IDC_HOSTCOM); |
| 953 |
//style = GetClassLongPtr(hwnd, GCL_STYLE); |
SetFocus(hwnd); |
|
//SetClassLongPtr(hwnd, GCL_STYLE, style | WS_TABSTOP); |
|
| 954 |
} |
} |
| 955 |
|
|
| 956 |
// SetFocus()でフォーカスをあわせた場合、FALSEを返す必要がある。 |
// SetFocus()でフォーカスをあわせた場合、FALSEを返す必要がある。 |
| 2193 |
|
|
| 2194 |
/* |
/* |
| 2195 |
* $Log: not supported by cvs2svn $ |
* $Log: not supported by cvs2svn $ |
| 2196 |
|
* Revision 1.15 2005/03/12 15:07:34 yutakakn |
| 2197 |
|
* SSH2 keyboard-interactive認証をTISダイアログに実装した。 |
| 2198 |
|
* |
| 2199 |
* Revision 1.14 2005/03/12 12:08:05 yutakakn |
* Revision 1.14 2005/03/12 12:08:05 yutakakn |
| 2200 |
* パスワード認証の前に行うkeyboard-interactiveメソッドで、デフォルト設定値を無効(0)にした。 |
* パスワード認証の前に行うkeyboard-interactiveメソッドで、デフォルト設定値を無効(0)にした。 |
| 2201 |
* また、認証ダイアログのラベル名を設定の有無により変更するようにした。 |
* また、認証ダイアログのラベル名を設定の有無により変更するようにした。 |