Treeview control (comctl32 / VB5-era) missing icons & captions?

此生再无相见时 提交于 2019-12-10 22:56:25

问题


VB6 app works fine on Windows 8 with one exception:

Display form with treeview. Displays correctly. Click button which displays another form used for entry. When the new form is dismissed (and a new node added to the treeview) all nodes' pictures and are invisible. The +/- signs display, but not the pictures and captions.

If the form is closed and then re-opened, all nodes are properly displayed until another form is opened.

The two forms involved are both MDI child forms.

Thanks.


回答1:


I just ran into this problem on a client machine. Unfortunately I didn't have the luxury of rebuilding using VB6 (mscomctl.ocx) controls, which according to the previous comment should work.

However it turns out that if you disable the "Touchscreen keyboard and handwriting panel" service in Windows 8 the comctl32.ocx TreeView control will work properly.




回答2:


IIRC from prior experience, while the treeview in COMCTL32 (from VB5) has this issue, updating the program to use the VB6-era MSCOMCTL32 treeview should fix it. I don't think we ever found any other fix for the root problem, assuming you can't disable the touch services.

I believe the two treeviews are very similar and this upgrade shouldn't be difficult.

I don't recall if any other common controls had the same issue.



来源:https://stackoverflow.com/questions/15879964/treeview-control-comctl32-vb5-era-missing-icons-captions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!