mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-06-14 03:16:38 +10:00
Make FixFolderScroll available in all Windows versions (#1887)
This commit is contained in:
@@ -243,7 +243,7 @@ LRESULT CALLBACK CExplorerBHO::HookExplorer( int nCode, WPARAM wParam, LPARAM lP
|
|||||||
if (GetClassName(parent,name,_countof(name)) && _wcsicmp(name,L"CabinetWClass")==0)
|
if (GetClassName(parent,name,_countof(name)) && _wcsicmp(name,L"CabinetWClass")==0)
|
||||||
{
|
{
|
||||||
DWORD_PTR settings=0;
|
DWORD_PTR settings=0;
|
||||||
if (GetWinVersion()==WIN_VER_WIN7 && GetSettingBool(L"FixFolderScroll"))
|
if (GetSettingBool(L"FixFolderScroll"))
|
||||||
settings|=1;
|
settings|=1;
|
||||||
SetWindowSubclass(hWnd,SubclassTreeProc,'CLSH',settings);
|
SetWindowSubclass(hWnd,SubclassTreeProc,'CLSH',settings);
|
||||||
PostMessage(hWnd,TVM_SETEXTENDEDSTYLE,TVS_EX_FADEINOUTEXPANDOS|TVS_EX_AUTOHSCROLL|0x80000000,0);
|
PostMessage(hWnd,TVM_SETEXTENDEDSTYLE,TVS_EX_FADEINOUTEXPANDOS|TVS_EX_AUTOHSCROLL|0x80000000,0);
|
||||||
|
|||||||
@@ -621,7 +621,7 @@ void UpdateSettings( void )
|
|||||||
|
|
||||||
UpdateSetting(L"ShowCaption",CComVariant(0),false); HideSetting(L"ShowCaption",true);
|
UpdateSetting(L"ShowCaption",CComVariant(0),false); HideSetting(L"ShowCaption",true);
|
||||||
UpdateSetting(L"ShowIcon",CComVariant(0),false); HideSetting(L"ShowIcon",true);
|
UpdateSetting(L"ShowIcon",CComVariant(0),false); HideSetting(L"ShowIcon",true);
|
||||||
UpdateSetting(L"FixFolderScroll",CComVariant(0),false); HideSetting(L"FixFolderScroll",true);
|
UpdateSetting(L"FixFolderScroll",CComVariant(0),false);
|
||||||
UpdateSetting(L"ToolbarItems",CComVariant(g_DefaultToolbar2),false);
|
UpdateSetting(L"ToolbarItems",CComVariant(g_DefaultToolbar2),false);
|
||||||
|
|
||||||
if (GetWinVersion()>=WIN_VER_WIN10)
|
if (GetWinVersion()>=WIN_VER_WIN10)
|
||||||
|
|||||||
Reference in New Issue
Block a user