svnno****@sourc*****
svnno****@sourc*****
2011年 3月 15日 (火) 21:50:36 JST
Revision: 4386 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4386 Author: yutakapon Date: 2011-03-15 21:50:36 +0900 (Tue, 15 Mar 2011) Log Message: ----------- Real time modeã«ããã¦ã ãã»Edit boxã«ãã©ã¼ã«ã¹ããã¦ãå ´åãå ¥åæ¸ã¿ããã¹ãã®æ«å°¾ã¸ã«ã¼ã½ã«ç§»åããã ãã»Submitãã¿ã³æ¼ä¸ã§ãEdit boxã空ã«ããã ããã«ããã cf. http://logmett.com/forum/viewtopic.php?f=8&t=1601 Modified Paths: -------------- trunk/teraterm/teraterm/vtwin.cpp -------------- next part -------------- Modified: trunk/teraterm/teraterm/vtwin.cpp =================================================================== --- trunk/teraterm/teraterm/vtwin.cpp 2011-03-14 15:39:58 UTC (rev 4385) +++ trunk/teraterm/teraterm/vtwin.cpp 2011-03-15 12:50:36 UTC (rev 4386) @@ -4407,6 +4407,9 @@ static LRESULT CALLBACK HostnameEditProc(HWND dlg, UINT msg, WPARAM wParam, LPARAM lParam) { + char buf[1024]; + int len; + switch (msg) { case WM_CREATE: break; @@ -4414,8 +4417,14 @@ case WM_DESTROY: break; + case WM_LBUTTONUP: + // ·ÅÉeLXgªüͳêÄ¢éêÍAJ[\ðöÖÚ®³¹éB + len = GetWindowText(dlg, buf, sizeof(buf)); + SendMessage(dlg, EM_SETSEL, len, len); + SetFocus(dlg); + break; + case WM_LBUTTONDOWN: - case WM_LBUTTONUP: case WM_RBUTTONDOWN: case WM_RBUTTONUP: SetFocus(dlg); @@ -4826,6 +4835,7 @@ checked = SendMessage(GetDlgItem(hWnd, IDC_REALTIME_CHECK), BM_GETCHECK, 0, 0); if (checked & BST_CHECKED) { // check è strncpy_s(buf, sizeof(buf), "\n", _TRUNCATE); + SetDlgItemText(hWnd, IDC_COMMAND_EDIT, ""); goto skip; }