The last three versions of Windows have all had translucent highlight and hover effects in Windows Explorer listview:
Using a theme explorer I see that the ListItem has no state that matches what i see in Windows:
Is there a:
- class
- part
- state
that represents the ListView in Windows?
For compatibility reasons ListView still has the old style look by default.
DrawThemeBackground(htheme, hdc, LVP_LISTITEM, ...)
will simply draw a solid rectangle with border, for all item states, as shown in above image.GetSysColor
should be used to get the right colors for this listview.A call to
SetWindowTheme(hwnd, L"Explorer", NULL)
will load the new theme data and draw the list items similar to Explorer. Example:Output: