wxTreeCtrl水平滚动条的问题

这是wxWidgets论坛的中文版本。在这里,您可以用您的母语汉语讨论上面任一子论坛所涉及的所有关于wxWidgets的话题。欢迎大家参与到对有价值的帖子的中英互译工作中来!
Post Reply
smallercase
In need of some credit
In need of some credit
Posts: 5
Joined: Mon Dec 21, 2009 8:41 am

wxTreeCtrl水平滚动条的问题

Post by smallercase » Mon Dec 21, 2009 8:53 am

是这样的
当wxTreeCtrl的item文本超过client区域后,我将其截断到显示区域的宽度进行显示,但不要水平滚动条。但是现在文本是截断了,不过还是出现水平滚动条。请个位高手帮帮忙,我已经搞了好几天了!
I love you ! wxWidgets

smallercase
In need of some credit
In need of some credit
Posts: 5
Joined: Mon Dec 21, 2009 8:41 am

wxTreeCtrl水平滚动条

Post by smallercase » Tue Dec 22, 2009 2:47 am

各位高手:
帮帮忙吧,如何能屏蔽掉树形控件的水平滚动条?
小弟多谢谢了!
I love you ! wxWidgets

kingkamg
I live to help wx-kind
I live to help wx-kind
Posts: 187
Joined: Tue Apr 08, 2008 1:45 pm

Post by kingkamg » Thu Dec 24, 2009 1:34 am

SetWindowStyle(GetWindowStyle() & ~wxHSCROLL );
试试这个,如果不行就没辙了

Post Reply