Gaurav wrote:
I tried FWF_DESKTOP. It seems to break the scroll bar in Explorer and the "List View" turns into "Small Icons view" - so this change is not without unwanted side effects.
Yes, the icons get aligned vertically. But this can be fixed by removing certain attributes from ListView control, for instance this AHK script removes vertical align and adds a scrollbar:
Code:
Control, Style, -0x2800, SysListView321, ahk_id %lParam%
I do not understand what you mean under "changes to the small icons view".
This is the full version of the script that would fix the issues when FWF_DESKTOP is enabled:
Code:
#NoTrayIcon
#NoEnv
Gui +LastFound
hWnd := WinExist()
SetControlDelay, -1
SetBatchLines -1
DllCall( "RegisterShellHookWindow", UInt,hWnd )
MsgNum := DllCall( "RegisterWindowMessage", Str,"SHELLHOOK" )
OnMessage( MsgNum, "ShellMessage" )
Return
ShellMessage(wParam,lParam) {
If (wParam = 1 or wParam = 6) ; HSHELL_WINDOWCREATED := 1
{
WinGetClass, WinClass, ahk_id %lParam%
if (WinClass = "CabinetWClass") {
Control, Style, -0x2800, FolderView, ahk_id %lParam%
Control, Style, -0x2800, SysListView321, ahk_id %lParam%
}
}
}