如何获得Windows自带的外观为.NET的TreeView?自带、如何获得、外观、TreeView

2023-09-02 10:24:43 作者:萌系小妹纸

当在.NET中使用TreeView的成分,我得到了左树的样子。 我怎样才能得到正确的树(Windows本地查找)对我的.NET TreeView控件的外观?

When using the TreeView component in .NET, I get the look of the left tree. How can I get the look of the right tree (Windows Native Look) for my .NET TreeView?

我特别希望得到的是三角节点处理和蓝色的泡泡选择方。

What I especially want to get is the "triangle" node handles and the blue "bubble" selection square.

推荐答案

您需要的P / Invoke来调用的 SetWindowTheme >