gpt4 book ai didi

vb6 - TreeView 控件 (comctl32.ocx) 不加载触摸屏服务

转载 作者:行者123 更新时间:2023-12-05 07:23:49 24 4
gpt4 key购买 nike

我在“Windows Server 2012 R2”机器中加载 TreeView 控件 (comctl32.ocx) 时遇到问题。使用的 TreeView 样式是 tvwpictureText

当我用谷歌搜索解决方案时。我发现解决方案说:如果您禁用“触摸键盘和手写面板服务”服务。控件将加载。

启用服务后,TreeView 控件 (comctl32.ocx) 未正确加载:

enter image description here

如果我禁用此服务并重新启动机器,则 TreeView 控件 (comctl32.ocx) 会正确加载:

enter image description here

如果我使用 mscomctl.ocx,无论在 Windows Server 2012 R2 机器中启用/禁用服务,TreeView 也会正确加载。但是我不能使用 mscomctl.ocx 进行开发,因为所有项目都是使用 comctl32.ocx 构建的。

这里想知道为什么这个服务会导致加载comctl32.ocx的TreeView控件出现问题。这个问题有什么替代方案吗?

最佳答案

如果您负担得起不使用 TreeView 上的图像,则将“Style”属性更改为 0 (tvwTextOnly) 它应该可以正常工作。该解决方案适用于我的应用程序。

关于vb6 - TreeView 控件 (comctl32.ocx) 不加载触摸屏服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55760352/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com