• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision10290 (tree)
Time2022-09-30 00:11:21
Authorzmatsuo

Log Message

ウィンドウの角を丸くしない設定をGUIからできるようにした

- その他の設定-表示タブ
- r10036

Change Summary

Incremental Difference

--- trunk/teraterm/common/tt_res.h (revision 10289)
+++ trunk/teraterm/common/tt_res.h (revision 10290)
@@ -118,7 +118,7 @@
118118 #define IDC_ENABLE_ATTR_COLOR_UNDERLINE 1080
119119 #define IDC_ENABLE_ATTR_FONT_UNDERLINE 1081
120120 #define IDC_ENABLE_ATTR_FONT_BOLD 1082
121-#define IDC_CHECK_CornerDontround 1083
121+#define IDC_CHECK_CORNERDONTROUND 1083
122122 #define IDD_PRNABORTDLG 2100
123123 #define IDD_FILETRANSDLG 2200
124124 #define IDC_TRANSFNAME 2201
--- trunk/teraterm/teraterm/addsetting.cpp (revision 10289)
+++ trunk/teraterm/teraterm/addsetting.cpp (revision 10290)
@@ -672,6 +672,7 @@
672672 { IDC_RED, "DLG_TAB_VISUAL_RED" },
673673 { IDC_GREEN, "DLG_TAB_VISUAL_GREEN" },
674674 { IDC_BLUE, "DLG_TAB_VISUAL_BLUE" },
675+ { IDC_CHECK_CORNERDONTROUND, "DLG_TAB_VISUAL_CORNER_DONT_ROUND" },
675676 { IDC_ENABLE_ATTR_COLOR_BOLD, "DLG_TAB_VISUAL_BOLD_COLOR" }, // SGR 1
676677 { IDC_ENABLE_ATTR_FONT_BOLD, "DLG_TAB_VISUAL_BOLD_FONT" },
677678 { IDC_ENABLE_ATTR_COLOR_UNDERLINE, "DLG_TAB_VISUAL_UNDERLINE_COLOR" }, // SGR 4
@@ -789,6 +790,11 @@
789790 SetCheck(IDC_CHECK_FAST_SIZE_MOVE, ts.EtermLookfeel.BGFastSizeMove != 0);
790791 SetCheck(IDC_CHECK_FLICKER_LESS_MOVE, ts.EtermLookfeel.BGNoCopyBits != 0);
791792
793+ SetCheck(IDC_CHECK_CORNERDONTROUND, (ts.WindowCornerDontround) != 0);
794+ if (pDwmSetWindowAttribute == NULL) {
795+ EnableDlgItem(IDC_CHECK_CORNERDONTROUND, FALSE);
796+ }
797+
792798 // ダイアログにフォーカスを当てる
793799 ::SetFocus(GetDlgItem(IDC_ALPHA_BLEND_ACTIVE));
794800
@@ -1179,6 +1185,14 @@
11791185 ts.EtermLookfeel.BGFastSizeMove = GetCheck(IDC_CHECK_FAST_SIZE_MOVE);
11801186 ts.EtermLookfeel.BGNoCopyBits = GetCheck(IDC_CHECK_FLICKER_LESS_MOVE);
11811187
1188+ if (ts.WindowCornerDontround != GetCheck(IDC_CHECK_CORNERDONTROUND)) {
1189+ ts.WindowCornerDontround = GetCheck(IDC_CHECK_CORNERDONTROUND);
1190+ if (pDwmSetWindowAttribute != NULL) {
1191+ DWM_WINDOW_CORNER_PREFERENCE preference = ts.WindowCornerDontround ? DWMWCP_DONOTROUND : DWMWCP_DEFAULT;
1192+ pDwmSetWindowAttribute(HVTWin, DWMWA_WINDOW_CORNER_PREFERENCE, &preference, sizeof(preference));
1193+ }
1194+ }
1195+
11821196 // ANSI Color
11831197 if (CheckColorChanged()) {
11841198 // 色の変更が行われた
Show on old repository browser