Windows 7的风格树视图中的Windows窗体 [英] Windows 7 style treeview in Windows Forms
本文介绍了Windows 7的风格树视图中的Windows窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
<一href="http://stackoverflow.com/questions/5131534/how-to-get-windows-native-look-for-the-net-treeview">How让Windows本机的外观为.NET的TreeView?
我想知道如果有可能我的风格的Windows窗体TreeView使用可用的VISTA / Windows 7的风格的时候。如果在旧版本的Windows上运行,那么我会想到要使用的常规树视图风格。
I'm wondering if it is possible to style my Windows Forms treeview using the Vista / Windows 7 style when available. If it is running in older versions of windows then I would expect the regular treeview style to be used.
这可能使用的清单还是会需要更详细的定制或使用第三方控制?
Is this possible using a manifest or will it require more detailed customization or the use of a third party control?
谢谢, 阿伦
推荐答案
使用 SetWindowTheme :
SetWindowTheme(treeView.Handle, "EXPLORER", NULL);
这篇关于Windows 7的风格树视图中的Windows窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文