1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2025-02-17 11:08:41 +01:00

Implemented absolute height and width parameters for the Windows 10 switcher

This commit is contained in:
Valentin Radu 2021-11-20 01:02:12 +02:00
parent 112f4bf92d
commit 113aa744a0
4 changed files with 23 additions and 4 deletions

View File

@ -18,6 +18,7 @@ Tested on build 22000.318 and 22000.346 (currently in Windows Insider beta and r
* Taskbar toolbar layouts are preserved when switching between Windows 10 and Windows 11 taskbars and in general (these will be reset when installing this update but should be subsequently remembered) (#395) (.2)
* Implemented option to toggle taskbar auto-hide when double clicking the main taskbar (#389) (.3)
* Running `ep-setup.exe` again while EP is already installed will now update the program to the latest version. To uninstall, as the previous behavior did, run `ep_setup.exe /uninstall` (.4)
* Implemented absolute height and width parameters for the Windows 10 switcher. These are especially useful for ultra wide monitors, in a scenario similar to the one described in [this post](https://github.com/valinet/ExplorerPatcher/discussions/110#discussioncomment-1673007) - to configure, set `MaxWidthAbs` and/or `MaxHeightAbs` DWORD values in `HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ExplorerPatcher\sws` (#110) (.5)
#### Feature enhancements

View File

@ -3314,6 +3314,24 @@ void sws_ReadSettings(sws_WindowSwitcher* sws)
&(sws->bPerMonitor),
&dwSize
);
dwSize = sizeof(DWORD);
RegQueryValueExW(
hKey,
TEXT("MaxWidthAbs"),
0,
NULL,
&(sws->dwMaxAbsoluteWP),
&dwSize
);
dwSize = sizeof(DWORD);
RegQueryValueExW(
hKey,
TEXT("MaxHeightAbs"),
0,
NULL,
&(sws->dwMaxAbsoluteHP),
&dwSize
);
if (sws)
{
sws_WindowSwitcher_RefreshTheme(sws);

@ -1 +1 @@
Subproject commit b40b703d66d7b8c3496919dc6ef2e9e8ca678802
Subproject commit d12b6f3c4bfc5841c49c4541a44db59d952d05a9

View File

@ -1,7 +1,7 @@
#define VER_MAJOR 22000
#define VER_MINOR 318
#define VER_BUILD_HI 38
#define VER_BUILD_LO 4
#define VER_BUILD_LO 5
#define VER_FLAGS VS_FF_PRERELEASE
@ -12,5 +12,5 @@
#define VER_STR(arg) #arg
// The String form of the version numbers
#define VER_FILE_STRING VALUE "FileVersion", "22000.318.38.4"
#define VER_PRODUCT_STRING VALUE "ProductVersion", "22000.318.38.4"
#define VER_FILE_STRING VALUE "FileVersion", "22000.318.38.5"
#define VER_PRODUCT_STRING VALUE "ProductVersion", "22000.318.38.5"