Revision: 7634 https://osdn.net/projects/ttssh2/scm/svn/commits/7634 Author: zmatsuo Date: 2019-04-29 00:42:38 +0900 (Mon, 29 Apr 2019) Log Message: ----------- ttsshのauth dialogのdropdownボタンを下向き三角のicon画像に変更 Modified Paths: -------------- trunk/ttssh2/ttxssh/auth.c trunk/ttssh2/ttxssh/resource.h trunk/ttssh2/ttxssh/ttxssh.rc Added Paths: ----------- trunk/ttssh2/ttxssh/dropdown.ico -------------- next part -------------- Modified: trunk/ttssh2/ttxssh/auth.c =================================================================== --- trunk/ttssh2/ttxssh/auth.c 2019-04-27 00:02:17 UTC (rev 7633) +++ trunk/ttssh2/ttxssh/auth.c 2019-04-28 15:42:38 UTC (rev 7634) @@ -801,6 +801,7 @@ // HFONT font; static BOOL UseControlChar; static BOOL ShowPassPhrase; + static HICON hIconDropdown; switch (msg) { case WM_INITDIALOG: @@ -841,6 +842,10 @@ DlgAuthFont = NULL; } #endif + hIconDropdown = LoadImage(hInst, MAKEINTRESOURCE(IDI_DROPDOWN), + IMAGE_ICON, 0, 0, LR_DEFAULTCOLOR); + SendMessage(GetDlgItem(dlg, IDC_USERNAME_OPTION), BM_SETIMAGE, IMAGE_ICON, (LPARAM)hIconDropdown); + SendMessage(GetDlgItem(dlg, IDC_SSHPASSWORD_OPTION), BM_SETIMAGE, IMAGE_ICON, (LPARAM)hIconDropdown); // SSH2 autologin\x82\xAA\x97L\x8C\xF8\x82̏ꍇ\x82́A\x83^\x83C\x83}\x82\xF0\x8Ed\x8A|\x82\xAF\x82\xE9\x81B (2004.12.1 yutaka) if (pvar->ssh2_autologin == 1) { @@ -1165,6 +1170,12 @@ return FALSE; } + case WM_DESTROY: + if (hIconDropdown != NULL) { + DeleteObject(hIconDropdown); + } + return FALSE; + default: return FALSE; } Added: trunk/ttssh2/ttxssh/dropdown.ico =================================================================== --- trunk/ttssh2/ttxssh/dropdown.ico (rev 0) +++ trunk/ttssh2/ttxssh/dropdown.ico 2019-04-28 15:42:38 UTC (rev 7634) @@ -0,0 +1 @@ + \xB0 ( \xFF\xFF \xFF\xFF \xFF\xFF \xFF\xFF \xFF\xFF \xFE \xFC? \xF8 \xF0 \xE0 \xFF\xFF \xFF\xFF \xFF\xFF \xFF\xFF \xFF\xFF \xFF\xFF \ No newline at end of file Modified: trunk/ttssh2/ttxssh/resource.h =================================================================== --- trunk/ttssh2/ttxssh/resource.h 2019-04-27 00:02:17 UTC (rev 7633) +++ trunk/ttssh2/ttxssh/resource.h 2019-04-28 15:42:38 UTC (rev 7634) @@ -18,6 +18,7 @@ #define IDI_SECURETT_YELLOW 110 #define IDD_SSHUPDATE_HOSTKEY 111 #define IDI_SECURETT_GREEN 113 +#define IDI_DROPDOWN 114 #define IDD_HOSTDLG 600 #define IDC_HOSTTCPIP 601 #define IDD_SSHDIFFERENTKEY 601 Modified: trunk/ttssh2/ttxssh/ttxssh.rc =================================================================== --- trunk/ttssh2/ttxssh/ttxssh.rc 2019-04-27 00:02:17 UTC (rev 7633) +++ trunk/ttssh2/ttxssh/ttxssh.rc 2019-04-28 15:42:38 UTC (rev 7634) @@ -58,10 +58,10 @@ LTEXT "Authentication required.",IDC_SSHAUTHBANNER2,6,16,281,10 LTEXT "User &name:",IDC_SSHUSERNAMELABEL,17,31,46,8 EDITTEXT IDC_SSHUSERNAME,73,29,146,12,ES_AUTOHSCROLL - PUSHBUTTON "...",IDC_USERNAME_OPTION,224,28,14,14,BS_BITMAP + PUSHBUTTON "",IDC_USERNAME_OPTION,224,28,14,14,BS_BITMAP LTEXT "&Passphrase:",IDC_SSHPASSWORDCAPTION,17,46,47,8 EDITTEXT IDC_SSHPASSWORD,73,44,146,12,ES_PASSWORD | ES_AUTOHSCROLL - PUSHBUTTON "...",IDC_SSHPASSWORD_OPTION,224,43,14,14 + PUSHBUTTON "",IDC_SSHPASSWORD_OPTION,224,43,14,14,BS_BITMAP CONTROL "Remember password in &memory",IDC_REMEMBER_PASSWORD, "Button",BS_AUTOCHECKBOX | WS_TABSTOP,17,61,132,10 CONTROL "F&orward agent",IDC_FORWARD_AGENT,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,17,75,132,10 @@ -648,7 +648,9 @@ IDI_SECURETT_YELLOW ICON "ttsecure_yellow.ico" +IDI_DROPDOWN ICON "dropdown.ico" + ///////////////////////////////////////////////////////////////////////////// // // AFX_DIALOG_LAYOUT