diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-11 20:44:53 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-11 20:44:53 +0300 |
commit | 18d675deb9ecad4cbd0aedda6e8a9de0db5a0700 (patch) | |
tree | 13f920d3cd5948252393b59e4d6181ae50bc1c30 /plugins/TabSRMM | |
parent | ba2930d2f91417bdd34b8f38115846ef6ee8db84 (diff) |
TabSRMM: fix for the correct default value of TaskbarSmallIcons
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/taskbar.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/TabSRMM/src/taskbar.cpp b/plugins/TabSRMM/src/taskbar.cpp index 20fe504dfc..3f5cf35289 100644 --- a/plugins/TabSRMM/src/taskbar.cpp +++ b/plugins/TabSRMM/src/taskbar.cpp @@ -87,23 +87,23 @@ bool CTaskbarInteract::haveLargeIcons() m_fHaveLargeicons = false;
if (m_pTaskbarInterface && m_isEnabled) {
- HKEY hKey;
- DWORD val = 1;
- DWORD valGrouping = 2;
- DWORD size = 4;
- DWORD dwType = REG_DWORD;
+ DWORD val = 0;
+ DWORD valGrouping = 2;
/*
* check whether the taskbar is set to show large icons. This is necessary, because the method SetOverlayIcon()
* always returns S_OK, but the icon is simply ignored when using small taskbar icons.
* also, figure out the button grouping mode.
*/
+ HKEY hKey;
if (::RegOpenKey(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", &hKey) == ERROR_SUCCESS) {
+ DWORD size = sizeof(val), dwType = REG_DWORD;
::RegQueryValueEx(hKey, L"TaskbarSmallIcons", nullptr, &dwType, (LPBYTE)&val, &size);
size = 4;
dwType = REG_DWORD;
/*
* this is the "grouping mode" setting for the task bar. 0 = always combine, no labels
*/
+ size = sizeof(valGrouping);
::RegQueryValueEx(hKey, L"TaskbarGlomLevel", nullptr, &dwType, (LPBYTE)&valGrouping, &size);
::RegCloseKey(hKey);
}
|