| 33 |
#include <stdio.h> |
#include <stdio.h> |
| 34 |
#include <windows.h> |
#include <windows.h> |
| 35 |
#include <commctrl.h> |
#include <commctrl.h> |
| 36 |
#include <time.h> |
#include <dwmapi.h> |
| 37 |
#define _CRTDBG_MAP_ALLOC |
#define _CRTDBG_MAP_ALLOC |
| 38 |
#include <stdlib.h> |
#include <stdlib.h> |
| 39 |
#include <crtdbg.h> |
#include <crtdbg.h> |
| 790 |
SetCheck(IDC_CHECK_FAST_SIZE_MOVE, ts.EtermLookfeel.BGFastSizeMove != 0); |
SetCheck(IDC_CHECK_FAST_SIZE_MOVE, ts.EtermLookfeel.BGFastSizeMove != 0); |
| 791 |
SetCheck(IDC_CHECK_FLICKER_LESS_MOVE, ts.EtermLookfeel.BGNoCopyBits != 0); |
SetCheck(IDC_CHECK_FLICKER_LESS_MOVE, ts.EtermLookfeel.BGNoCopyBits != 0); |
| 792 |
|
|
| 793 |
|
// ウィンドウの角を丸くしない |
| 794 |
SetCheck(IDC_CHECK_CORNERDONTROUND, (ts.WindowCornerDontround) != 0); |
SetCheck(IDC_CHECK_CORNERDONTROUND, (ts.WindowCornerDontround) != 0); |
| 795 |
if (pDwmSetWindowAttribute == NULL) { |
{ |
| 796 |
EnableDlgItem(IDC_CHECK_CORNERDONTROUND, FALSE); |
DWM_WINDOW_CORNER_PREFERENCE preference; |
| 797 |
|
if (pDwmGetWindowAttribute == NULL || |
| 798 |
|
pDwmGetWindowAttribute(HVTWin, DWMWA_WINDOW_CORNER_PREFERENCE, &preference, sizeof(preference)) != S_OK) { |
| 799 |
|
// ウィンドウの角を丸くしないに対応していないなら disable にする |
| 800 |
|
// DwmGetWindowAttribute() API がない or |
| 801 |
|
// DwmGetWindowAttribute(DWMWA_WINDOW_CORNER_PREFERENCE) で S_OK が返らない |
| 802 |
|
EnableDlgItem(IDC_CHECK_CORNERDONTROUND, FALSE); |
| 803 |
|
} |
| 804 |
} |
} |
| 805 |
|
|
| 806 |
// ダイアログにフォーカスを当てる |
// ダイアログにフォーカスを当てる |
| 1193 |
ts.EtermLookfeel.BGFastSizeMove = GetCheck(IDC_CHECK_FAST_SIZE_MOVE); |
ts.EtermLookfeel.BGFastSizeMove = GetCheck(IDC_CHECK_FAST_SIZE_MOVE); |
| 1194 |
ts.EtermLookfeel.BGNoCopyBits = GetCheck(IDC_CHECK_FLICKER_LESS_MOVE); |
ts.EtermLookfeel.BGNoCopyBits = GetCheck(IDC_CHECK_FLICKER_LESS_MOVE); |
| 1195 |
|
|
| 1196 |
|
// ウィンドウの角を丸くしない |
| 1197 |
if (ts.WindowCornerDontround != GetCheck(IDC_CHECK_CORNERDONTROUND)) { |
if (ts.WindowCornerDontround != GetCheck(IDC_CHECK_CORNERDONTROUND)) { |
| 1198 |
ts.WindowCornerDontround = GetCheck(IDC_CHECK_CORNERDONTROUND); |
ts.WindowCornerDontround = GetCheck(IDC_CHECK_CORNERDONTROUND); |
| 1199 |
if (pDwmSetWindowAttribute != NULL) { |
if (pDwmSetWindowAttribute != NULL) { |