|
|
|
@ -914,6 +914,12 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt) |
|
|
|
SetTextColor(hdcPaint, GetSysColor(COLOR_WINDOWTEXT)); |
|
|
|
SetTextColor(hdcPaint, GetSysColor(COLOR_WINDOWTEXT)); |
|
|
|
SetBkMode(hdcPaint, TRANSPARENT); |
|
|
|
SetBkMode(hdcPaint, TRANSPARENT); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
else if (!IsWindows11() && hDC) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
COLORREF oldcr = SetBkColor(hdcPaint, g_darkModeEnabled ? RGB(0, 0, 0) : RGB(255, 255, 255)); |
|
|
|
|
|
|
|
ExtTextOutW(hdcPaint, 0, 0, ETO_OPAQUE, &rc, L"", 0, 0); |
|
|
|
|
|
|
|
SetBkColor(hdcPaint, oldcr); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
BOOL bResetLastHeading = TRUE; |
|
|
|
BOOL bResetLastHeading = TRUE; |
|
|
|
BOOL bWasSpecifiedSectionValid = FALSE; |
|
|
|
BOOL bWasSpecifiedSectionValid = FALSE; |
|
|
|
@ -939,7 +945,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt) |
|
|
|
if (strcmp(line, "Windows Registry Editor Version 5.00\r\n") && |
|
|
|
if (strcmp(line, "Windows Registry Editor Version 5.00\r\n") && |
|
|
|
strcmp(line, "\r\n") && |
|
|
|
strcmp(line, "\r\n") && |
|
|
|
(currentSection == -1 || currentSection == _this->section || !strncmp(line, ";T ", 3) || !strncmp(line, ";f", 2) || AuditFile) && |
|
|
|
(currentSection == -1 || currentSection == _this->section || !strncmp(line, ";T ", 3) || !strncmp(line, ";f", 2) || AuditFile) && |
|
|
|
!((!IsThemeActive() || IsHighContrast()) && !strncmp(line, ";M ", 3)) |
|
|
|
!((!IsThemeActive() || IsHighContrast() || !IsWindows11()) && !strncmp(line, ";M ", 3)) |
|
|
|
) |
|
|
|
) |
|
|
|
{ |
|
|
|
{ |
|
|
|
#ifndef USE_PRIVATE_INTERFACES |
|
|
|
#ifndef USE_PRIVATE_INTERFACES |
|
|
|
@ -2960,7 +2966,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt) |
|
|
|
printf("%d %d - %d %d\n", rcWin.right - rcWin.left, rcWin.bottom - rcWin.top, dwMaxWidth, dwMaxHeight); |
|
|
|
printf("%d %d - %d %d\n", rcWin.right - rcWin.left, rcWin.bottom - rcWin.top, dwMaxWidth, dwMaxHeight); |
|
|
|
|
|
|
|
|
|
|
|
dwMaxWidth += dwInitialLeftPad + _this->padding.left + _this->padding.right; |
|
|
|
dwMaxWidth += dwInitialLeftPad + _this->padding.left + _this->padding.right; |
|
|
|
if (!IsThemeActive() || IsHighContrast()) |
|
|
|
if (!IsThemeActive() || IsHighContrast() || !IsWindows11()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
dwMaxHeight += GUI_LINE_HEIGHT * dy + 20 * dy; |
|
|
|
dwMaxHeight += GUI_LINE_HEIGHT * dy + 20 * dy; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -2983,68 +2989,75 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt) |
|
|
|
SWP_NOZORDER | SWP_NOACTIVATE | (_this->bCalcExtent == 2 ? SWP_NOMOVE : 0) |
|
|
|
SWP_NOZORDER | SWP_NOACTIVATE | (_this->bCalcExtent == 2 ? SWP_NOMOVE : 0) |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
DWORD dwReadSection = 0; |
|
|
|
if (_this->bCalcExtent != 2) |
|
|
|
|
|
|
|
|
|
|
|
HKEY hKey = NULL; |
|
|
|
|
|
|
|
DWORD dwSize = sizeof(DWORD); |
|
|
|
|
|
|
|
RegCreateKeyExW( |
|
|
|
|
|
|
|
HKEY_CURRENT_USER, |
|
|
|
|
|
|
|
TEXT(REGPATH), |
|
|
|
|
|
|
|
0, |
|
|
|
|
|
|
|
NULL, |
|
|
|
|
|
|
|
REG_OPTION_NON_VOLATILE, |
|
|
|
|
|
|
|
KEY_READ | KEY_WOW64_64KEY | KEY_WRITE, |
|
|
|
|
|
|
|
NULL, |
|
|
|
|
|
|
|
&hKey, |
|
|
|
|
|
|
|
NULL |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
if (hKey == NULL || hKey == INVALID_HANDLE_VALUE) |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
hKey = NULL; |
|
|
|
DWORD dwReadSection = 0; |
|
|
|
} |
|
|
|
|
|
|
|
if (hKey) |
|
|
|
HKEY hKey = NULL; |
|
|
|
{ |
|
|
|
DWORD dwSize = sizeof(DWORD); |
|
|
|
dwReadSection = 0; |
|
|
|
RegCreateKeyExW( |
|
|
|
dwSize = sizeof(DWORD); |
|
|
|
HKEY_CURRENT_USER, |
|
|
|
RegQueryValueExW( |
|
|
|
TEXT(REGPATH), |
|
|
|
hKey, |
|
|
|
|
|
|
|
TEXT("LastSectionInProperties"), |
|
|
|
|
|
|
|
0, |
|
|
|
0, |
|
|
|
NULL, |
|
|
|
NULL, |
|
|
|
&dwReadSection, |
|
|
|
REG_OPTION_NON_VOLATILE, |
|
|
|
&dwSize |
|
|
|
KEY_READ | KEY_WOW64_64KEY | KEY_WRITE, |
|
|
|
|
|
|
|
NULL, |
|
|
|
|
|
|
|
&hKey, |
|
|
|
|
|
|
|
NULL |
|
|
|
); |
|
|
|
); |
|
|
|
if (dwReadSection) |
|
|
|
if (hKey == NULL || hKey == INVALID_HANDLE_VALUE) |
|
|
|
{ |
|
|
|
{ |
|
|
|
_this->section = dwReadSection - 1; |
|
|
|
hKey = NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
dwReadSection = 0; |
|
|
|
if (hKey) |
|
|
|
dwSize = sizeof(DWORD); |
|
|
|
|
|
|
|
RegQueryValueExW( |
|
|
|
|
|
|
|
hKey, |
|
|
|
|
|
|
|
TEXT("OpenPropertiesAtNextStart"), |
|
|
|
|
|
|
|
0, |
|
|
|
|
|
|
|
NULL, |
|
|
|
|
|
|
|
&dwReadSection, |
|
|
|
|
|
|
|
&dwSize |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
if (dwReadSection) |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
_this->section = dwReadSection - 1; |
|
|
|
|
|
|
|
dwReadSection = 0; |
|
|
|
dwReadSection = 0; |
|
|
|
RegSetValueExW( |
|
|
|
dwSize = sizeof(DWORD); |
|
|
|
|
|
|
|
RegQueryValueExW( |
|
|
|
|
|
|
|
hKey, |
|
|
|
|
|
|
|
TEXT("LastSectionInProperties"), |
|
|
|
|
|
|
|
0, |
|
|
|
|
|
|
|
NULL, |
|
|
|
|
|
|
|
&dwReadSection, |
|
|
|
|
|
|
|
&dwSize |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
if (dwReadSection) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
_this->section = dwReadSection - 1; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
dwReadSection = 0; |
|
|
|
|
|
|
|
dwSize = sizeof(DWORD); |
|
|
|
|
|
|
|
RegQueryValueExW( |
|
|
|
hKey, |
|
|
|
hKey, |
|
|
|
TEXT("OpenPropertiesAtNextStart"), |
|
|
|
TEXT("OpenPropertiesAtNextStart"), |
|
|
|
0, |
|
|
|
0, |
|
|
|
REG_DWORD, |
|
|
|
NULL, |
|
|
|
&dwReadSection, |
|
|
|
&dwReadSection, |
|
|
|
sizeof(DWORD) |
|
|
|
&dwSize |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
if (dwReadSection) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
_this->section = dwReadSection - 1; |
|
|
|
|
|
|
|
dwReadSection = 0; |
|
|
|
|
|
|
|
RegSetValueExW( |
|
|
|
|
|
|
|
hKey, |
|
|
|
|
|
|
|
TEXT("OpenPropertiesAtNextStart"), |
|
|
|
|
|
|
|
0, |
|
|
|
|
|
|
|
REG_DWORD, |
|
|
|
|
|
|
|
&dwReadSection, |
|
|
|
|
|
|
|
sizeof(DWORD) |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
RegCloseKey(hKey); |
|
|
|
} |
|
|
|
} |
|
|
|
RegCloseKey(hKey); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (_this->bCalcExtent == 2) |
|
|
|
_this->bCalcExtent = FALSE; |
|
|
|
{ |
|
|
|
|
|
|
|
_this->section = _this->last_section; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_this->bCalcExtent = 0; |
|
|
|
InvalidateRect(hwnd, NULL, FALSE); |
|
|
|
InvalidateRect(hwnd, NULL, FALSE); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -3085,7 +3098,7 @@ static LRESULT CALLBACK GUI_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPAR |
|
|
|
_this->dpi.x = dpiX; |
|
|
|
_this->dpi.x = dpiX; |
|
|
|
_this->dpi.y = dpiY; |
|
|
|
_this->dpi.y = dpiY; |
|
|
|
SetRect(&_this->border_thickness, 2, 2, 2, 2); |
|
|
|
SetRect(&_this->border_thickness, 2, 2, 2, 2); |
|
|
|
if (IsThemeActive()) |
|
|
|
if (IsThemeActive() && IsWindows11()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
BOOL bIsCompositionEnabled = TRUE; |
|
|
|
BOOL bIsCompositionEnabled = TRUE; |
|
|
|
DwmIsCompositionEnabled(&bIsCompositionEnabled); |
|
|
|
DwmIsCompositionEnabled(&bIsCompositionEnabled); |
|
|
|
@ -3119,7 +3132,7 @@ static LRESULT CALLBACK GUI_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPAR |
|
|
|
SWP_NOZORDER | SWP_NOACTIVATE | SWP_FRAMECHANGED |
|
|
|
SWP_NOZORDER | SWP_NOACTIVATE | SWP_FRAMECHANGED |
|
|
|
); |
|
|
|
); |
|
|
|
SetTimer(hWnd, GUI_TIMER_READ_HELP, GUI_TIMER_READ_HELP_TIMEOUT, NULL); |
|
|
|
SetTimer(hWnd, GUI_TIMER_READ_HELP, GUI_TIMER_READ_HELP_TIMEOUT, NULL); |
|
|
|
if (IsThemeActive() && !IsHighContrast()) |
|
|
|
if (IsThemeActive() && !IsHighContrast() && IsWindows11()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
RECT rcTitle; |
|
|
|
RECT rcTitle; |
|
|
|
DwmGetWindowAttribute(hWnd, DWMWA_CAPTION_BUTTON_BOUNDS, &rcTitle, sizeof(RECT)); |
|
|
|
DwmGetWindowAttribute(hWnd, DWMWA_CAPTION_BUTTON_BOUNDS, &rcTitle, sizeof(RECT)); |
|
|
|
@ -3133,9 +3146,16 @@ static LRESULT CALLBACK GUI_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPAR |
|
|
|
{ |
|
|
|
{ |
|
|
|
AllowDarkModeForWindow(hWnd, g_darkModeEnabled); |
|
|
|
AllowDarkModeForWindow(hWnd, g_darkModeEnabled); |
|
|
|
BOOL value = g_darkModeEnabled; |
|
|
|
BOOL value = g_darkModeEnabled; |
|
|
|
DwmSetWindowAttribute(hWnd, DWMWA_USE_IMMERSIVE_DARK_MODE, &value, sizeof(BOOL)); |
|
|
|
RTL_OSVERSIONINFOW rovi; |
|
|
|
|
|
|
|
DWORD32 ubr = VnGetOSVersionAndUBR(&rovi); |
|
|
|
|
|
|
|
int s = 0; |
|
|
|
|
|
|
|
if (rovi.dwBuildNumber < 18985) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
s = -1; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
DwmSetWindowAttribute(hWnd, DWMWA_USE_IMMERSIVE_DARK_MODE + s, &value, sizeof(BOOL)); |
|
|
|
} |
|
|
|
} |
|
|
|
if (!IsThemeActive() || IsHighContrast()) |
|
|
|
if (!IsThemeActive() || IsHighContrast() || !IsWindows11()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int extendedStyle = GetWindowLong(hWnd, GWL_EXSTYLE); |
|
|
|
int extendedStyle = GetWindowLong(hWnd, GWL_EXSTYLE); |
|
|
|
SetWindowLong(hWnd, GWL_EXSTYLE, extendedStyle | WS_EX_DLGMODALFRAME); |
|
|
|
SetWindowLong(hWnd, GWL_EXSTYLE, extendedStyle | WS_EX_DLGMODALFRAME); |
|
|
|
@ -3159,7 +3179,7 @@ static LRESULT CALLBACK GUI_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPAR |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (IsColorSchemeChangeMessage(lParam)) |
|
|
|
if (IsColorSchemeChangeMessage(lParam)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (IsThemeActive()) |
|
|
|
if (IsThemeActive() && IsWindows11()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
BOOL bIsCompositionEnabled = TRUE; |
|
|
|
BOOL bIsCompositionEnabled = TRUE; |
|
|
|
DwmIsCompositionEnabled(&bIsCompositionEnabled); |
|
|
|
DwmIsCompositionEnabled(&bIsCompositionEnabled); |
|
|
|
@ -3183,12 +3203,11 @@ static LRESULT CALLBACK GUI_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPAR |
|
|
|
DwmExtendFrameIntoClientArea(hWnd, &marGlassInset); |
|
|
|
DwmExtendFrameIntoClientArea(hWnd, &marGlassInset); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
_this->bCalcExtent = 2; |
|
|
|
|
|
|
|
BOOL bIsCompositionEnabled = TRUE; |
|
|
|
BOOL bIsCompositionEnabled = TRUE; |
|
|
|
DwmIsCompositionEnabled(&bIsCompositionEnabled); |
|
|
|
DwmIsCompositionEnabled(&bIsCompositionEnabled); |
|
|
|
if (bIsCompositionEnabled) |
|
|
|
if (bIsCompositionEnabled) |
|
|
|
{ |
|
|
|
{ |
|
|
|
BOOL value = (IsThemeActive() && !IsHighContrast()) ? 1 : 0; |
|
|
|
BOOL value = (IsThemeActive() && !IsHighContrast() && IsWindows11()) ? 1 : 0; |
|
|
|
DwmSetWindowAttribute(hWnd, DWMWA_MICA_EFFFECT, &value, sizeof(BOOL)); |
|
|
|
DwmSetWindowAttribute(hWnd, DWMWA_MICA_EFFFECT, &value, sizeof(BOOL)); |
|
|
|
} |
|
|
|
} |
|
|
|
if (IsThemeActive() && ShouldAppsUseDarkMode && !IsHighContrast()) |
|
|
|
if (IsThemeActive() && ShouldAppsUseDarkMode && !IsHighContrast()) |
|
|
|
@ -3200,12 +3219,25 @@ static LRESULT CALLBACK GUI_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPAR |
|
|
|
g_darkModeEnabled = bDarkModeEnabled; |
|
|
|
g_darkModeEnabled = bDarkModeEnabled; |
|
|
|
AllowDarkModeForWindow(hWnd, g_darkModeEnabled); |
|
|
|
AllowDarkModeForWindow(hWnd, g_darkModeEnabled); |
|
|
|
BOOL value = g_darkModeEnabled; |
|
|
|
BOOL value = g_darkModeEnabled; |
|
|
|
DwmSetWindowAttribute(hWnd, DWMWA_USE_IMMERSIVE_DARK_MODE, &value, sizeof(BOOL)); |
|
|
|
RTL_OSVERSIONINFOW rovi; |
|
|
|
|
|
|
|
DWORD32 ubr = VnGetOSVersionAndUBR(&rovi); |
|
|
|
|
|
|
|
int s = 0; |
|
|
|
|
|
|
|
if (rovi.dwBuildNumber < 18985) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
s = -1; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
DwmSetWindowAttribute(hWnd, DWMWA_USE_IMMERSIVE_DARK_MODE + s, &value, sizeof(BOOL)); |
|
|
|
|
|
|
|
_this->bCalcExtent = 2; |
|
|
|
|
|
|
|
_this->last_section = _this->section; |
|
|
|
|
|
|
|
_this->section = 0; |
|
|
|
InvalidateRect(hWnd, NULL, FALSE); |
|
|
|
InvalidateRect(hWnd, NULL, FALSE); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
_this->bCalcExtent = 2; |
|
|
|
|
|
|
|
_this->last_section = _this->section; |
|
|
|
|
|
|
|
_this->section = 0; |
|
|
|
InvalidateRect(hWnd, NULL, FALSE); |
|
|
|
InvalidateRect(hWnd, NULL, FALSE); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -3316,7 +3348,7 @@ static LRESULT CALLBACK GUI_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPAR |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else if (uMsg == WM_NCMOUSELEAVE && IsThemeActive() && !IsHighContrast()) |
|
|
|
else if (uMsg == WM_NCMOUSELEAVE && IsThemeActive() && !IsHighContrast() && IsWindows11()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
LRESULT lRes = 0; |
|
|
|
LRESULT lRes = 0; |
|
|
|
if (DwmDefWindowProc(hWnd, uMsg, wParam, lParam, &lRes)) |
|
|
|
if (DwmDefWindowProc(hWnd, uMsg, wParam, lParam, &lRes)) |
|
|
|
@ -3324,7 +3356,7 @@ static LRESULT CALLBACK GUI_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPAR |
|
|
|
return lRes; |
|
|
|
return lRes; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else if (uMsg == WM_NCRBUTTONUP && IsThemeActive() && !IsHighContrast()) |
|
|
|
else if (uMsg == WM_NCRBUTTONUP && IsThemeActive() && !IsHighContrast() && IsWindows11()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
HMENU pSysMenu = GetSystemMenu(hWnd, FALSE); |
|
|
|
HMENU pSysMenu = GetSystemMenu(hWnd, FALSE); |
|
|
|
if (pSysMenu != NULL) |
|
|
|
if (pSysMenu != NULL) |
|
|
|
@ -3342,7 +3374,7 @@ static LRESULT CALLBACK GUI_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPAR |
|
|
|
} |
|
|
|
} |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
else if ((uMsg == WM_LBUTTONUP || uMsg == WM_RBUTTONUP) && IsThemeActive() && !IsHighContrast()) |
|
|
|
else if ((uMsg == WM_LBUTTONUP || uMsg == WM_RBUTTONUP) && IsThemeActive() && !IsHighContrast() && IsWindows11()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
POINT pt; |
|
|
|
POINT pt; |
|
|
|
pt.x = GET_X_LPARAM(lParam); |
|
|
|
pt.x = GET_X_LPARAM(lParam); |
|
|
|
@ -3398,7 +3430,7 @@ static LRESULT CALLBACK GUI_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPAR |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else if (uMsg == WM_NCHITTEST && IsThemeActive() && !IsHighContrast()) |
|
|
|
else if (uMsg == WM_NCHITTEST && IsThemeActive() && !IsHighContrast() && IsWindows11()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
LRESULT lRes = 0; |
|
|
|
LRESULT lRes = 0; |
|
|
|
if (DwmDefWindowProc(hWnd, uMsg, wParam, lParam, &lRes)) |
|
|
|
if (DwmDefWindowProc(hWnd, uMsg, wParam, lParam, &lRes)) |
|
|
|
@ -3425,7 +3457,7 @@ static LRESULT CALLBACK GUI_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPAR |
|
|
|
return HTCAPTION; |
|
|
|
return HTCAPTION; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else if (uMsg == WM_NCCALCSIZE && wParam == TRUE && IsThemeActive() && !IsHighContrast()) |
|
|
|
else if (uMsg == WM_NCCALCSIZE && wParam == TRUE && IsThemeActive() && !IsHighContrast() && IsWindows11()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
NCCALCSIZE_PARAMS* sz = (NCCALCSIZE_PARAMS*)(lParam); |
|
|
|
NCCALCSIZE_PARAMS* sz = (NCCALCSIZE_PARAMS*)(lParam); |
|
|
|
sz->rgrc[0].left += _this->border_thickness.left; |
|
|
|
sz->rgrc[0].left += _this->border_thickness.left; |
|
|
|
@ -3769,7 +3801,7 @@ __declspec(dllexport) int ZZGUI(HWND hWnd, HINSTANCE hInstance, LPSTR lpszCmdLin |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (IsThemeActive() && !IsHighContrast()) |
|
|
|
if (IsThemeActive() && !IsHighContrast() && IsWindows11()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (bIsCompositionEnabled) |
|
|
|
if (bIsCompositionEnabled) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|