Treeview control (comctl32 / VB5-era) missing icon

2019-07-18 09:34发布

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.

2条回答
劫难
2楼-- · 2019-07-18 10:04

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.

查看更多
Viruses.
3楼-- · 2019-07-18 10:18

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.

查看更多
登录 后发表回答