[Ttssh2-commit] [4576] r4574 のフォーカスの変更をコードで行うようにした

svnno****@sourc***** svnno****@sourc*****
2011年 8月 5日 (金) 08:34:21 JST


Revision: 4576
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4576
Author:   maya
Date:     2011-08-05 08:34:21 +0900 (Fri, 05 Aug 2011)

Log Message:
-----------
r4574 のフォーカスの変更をコードで行うようにした

Modified Paths:
--------------
    trunk/ttssh2/ttxssh/ttxssh.c
    trunk/ttssh2/ttxssh/ttxssh.rc


-------------- next part --------------
Modified: trunk/ttssh2/ttxssh/ttxssh.c
===================================================================
--- trunk/ttssh2/ttxssh/ttxssh.c	2011-08-04 23:16:01 UTC (rev 4575)
+++ trunk/ttssh2/ttxssh/ttxssh.c	2011-08-04 23:34:21 UTC (rev 4576)
@@ -2495,7 +2495,8 @@
 		}
 
 		init_about_dlg((PTInstVar) lParam, dlg);
-		return TRUE;
+		SetFocus(GetDlgItem(dlg, IDOK));
+		return FALSE;
 	case WM_COMMAND:
 		switch (LOWORD(wParam)) {
 		case IDOK:

Modified: trunk/ttssh2/ttxssh/ttxssh.rc
===================================================================
--- trunk/ttssh2/ttxssh/ttxssh.rc	2011-08-04 23:16:01 UTC (rev 4575)
+++ trunk/ttssh2/ttxssh/ttxssh.rc	2011-08-04 23:34:21 UTC (rev 4576)
@@ -57,7 +57,6 @@
 CAPTION "About TTSSH"
 FONT 8, "Tahoma", 0, 0, 0x0
 BEGIN
-    DEFPUSHBUTTON   "OK",IDOK,106,263,50,14
     LTEXT           "Tera Term Secure Shell extension, ",IDC_TTSSH_VERSION,6,7,220,15
     ICON            "",IDC_TTSSH_ICON,234,7,21,20
     LTEXT           "Compatible with SSH protocol version 1.5 and 2.0",IDC_SSHVERSIONS,6,23,206,11
@@ -69,6 +68,7 @@
     LTEXT           "THIS EXTENSION INCORPORATES STRONG CRYPTOGRAPHY. POSESSION, USE, AND/OR EXPORT OF THIS EXTENSION MAY BE ILLEGAL IN YOUR COUNTRY.",IDC_CRYPTOGRAPHY,6,116,248,26
     LTEXT           "This extension uses OpenSSH code by OpenBSD Project. Thanks also to Ian Goldberg for his Pilot SSH code, which was a very handy reference. Special thanks to Takashi Teranishi for his cooperation.",IDC_CREDIT,6,140,248,27
     EDITTEXT        IDC_ABOUTTEXT,6,171,248,87,ES_MULTILINE | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_READONLY
+    DEFPUSHBUTTON   "OK",IDOK,106,263,50,14
 END
 
 IDD_SSHAUTH DIALOGEX 0, 0, 309, 262



Ttssh2-commit メーリングリストの案内