'Explorer' theme for ListViews & TreeViews on Vista+
Posted: 16 Jul 2015, 03:01
Related: viewtopic.php?f=13&t=8685
As long as it isn't implemented, you might want to use this function or similar:
As long as it isn't implemented, you might want to use this function or similar:
Code: Select all
SetExplorerTheme(HCTL) { ; HCTL : handle of a ListView or TreeView control
If (DllCall("GetVersion", "UChar") > 5) {
VarSetCapacity(ClassName, 1024, 0)
If DllCall("GetClassName", "Ptr", HCTL, "Str", ClassName, "Int", 512, "Int")
If (ClassName = "SysListView32") || (ClassName = "SysTreeView32")
Return !DllCall("UxTheme.dll\SetWindowTheme", "Ptr", HCTL, "WStr", "Explorer", "Ptr", 0)
}
Return False
}