How to find out if the taskbar uses small icons

I am looking for a way to determine if a user is using small icons: Use small taskbar buttons

I cannot find anything in GetSystemMetrics \ SystemParametersInfo.
I tried using the "Launch Application" window size: Running application window

It works fine when the orientation of the taskbar is down / up, but when it is left \ right, this window occupies the entire width of the taskbar.

Any ideas?

+4
source share
1 answer

Desktop stripes are not completely dead on Windows, but they do support life. First, make sure you don’t want to use the thumbnail toolbars, the ITaskbarList3 :: ThumbBarXxx () functions.

I do not know api to read button size setting. There is a backdoor that you can use, these configuration parameters are always stored in the registry. Run the ProcMon SysInternals utility and change the setting. On my machine (Windows 8) this registry key popped up:

HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ Advanced \ TaskbarSmallIcons

It almost certainly works, I can’t guarantee anything outside of Windows 8.

+6
source

All Articles