when I create a ListView in details view in VS2008, it creates a rather old looking listview. It doesnt have any of the fancy hover effects and cool blue border that (for example) the file explorer in WinVista and Win7 has. See image for example:
总而言之,如何在 C# VS2008 中获得一个像上图所示的 ListView? (右侧为VS2008列表视图对比)
Thanks
尝试打电话设置窗口主题
像这样:
[DllImport("uxtheme.dll", ExactSpelling=true, CharSet=CharSet.Unicode)]
private static extern int SetWindowTheme(IntPtr hwnd, string pszSubAppName, string pszSubIdList);
// The constructor:
public MyForm() {
SetWindowTheme(this.listView1.Handle, "Explorer", null);
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)