可能重复: 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);