Revision: 9475 https://osdn.net/projects/ttssh2/scm/svn/commits/9475 Author: zmatsuo Date: 2021-10-17 01:11:51 +0900 (Sun, 17 Oct 2021) Log Message: ----------- ttsshのaboutダイアログのアイコンサイズをDPIに追従するよう修正 Modified Paths: -------------- trunk/ttssh2/ttxssh/ttxssh.c -------------- next part -------------- Modified: trunk/ttssh2/ttxssh/ttxssh.c =================================================================== --- trunk/ttssh2/ttxssh/ttxssh.c 2021-10-16 16:11:41 UTC (rev 9474) +++ trunk/ttssh2/ttxssh/ttxssh.c 2021-10-16 16:11:51 UTC (rev 9475) @@ -2156,20 +2156,8 @@ SendDlgItemMessage(dlg, IDC_ABOUTTEXT, WM_SETFONT, (WPARAM)DlgAboutTextFont, MAKELPARAM(TRUE,0)); } - // \x83A\x83C\x83R\x83\x93\x82I\x82ɃZ\x83b\x83g - { - int fuLoad = LR_DEFAULTCOLOR; - HICON hicon; + SetDlgItemIcon(dlg, IDC_TTSSH_ICON, MAKEINTRESOURCEW(pvar->settings.IconID)); - if (IsWindowsNT4()) { - fuLoad = LR_VGACOLOR; - } - - hicon = LoadImage(hInst, MAKEINTRESOURCE(pvar->settings.IconID), - IMAGE_ICON, 32, 32, fuLoad); - SendDlgItemMessage(dlg, IDC_TTSSH_ICON, STM_SETICON, (WPARAM)hicon, 0); - } - init_about_dlg(pvar, dlg); CheckDlgButton(dlg, IDC_FP_HASH_ALG_SHA256, TRUE); about_dlg_set_abouttext(pvar, dlg, SSH_DIGEST_SHA256); @@ -2216,6 +2204,7 @@ if (DlgAboutTextFont != NULL) { SendDlgItemMessage(dlg, IDC_ABOUTTEXT, WM_SETFONT, (WPARAM)DlgAboutTextFont, MAKELPARAM(TRUE,0)); } + SendDlgItemMessage(dlg, IDC_TTSSH_ICON, msg, wParam, lParam); return FALSE; }