问题
I have a TreeView which I am skinning using the SetWindowsTheme()
pinvoke, however I am unable to remove the tree lines that appear.
I do not wish to do 'Owner' drawn as I believe that would be the equivalent of taking an 18-wheeler truck to deliver one taco (overkill).
What is a clean, quick way to eliminate the Tree forks while keeping the expansion arrows. (I need to keep the arrows on the root nodes as well)
should look like :
回答1:
Try this:
yourTreeView.ShowLines = false;
yourTreeView.ShowPlusMinus = true;
Not sure if this will show up as you wish under your theme, though.
来源:https://stackoverflow.com/questions/38836627/how-can-i-eliminate-the-lines-in-treeview-while-keeping-all-arrows