即使使用触摸屏也能显示鼠标光标 [英] Show mouse cursor even when using touchscreen

查看:936
本文介绍了即使使用触摸屏也能显示鼠标光标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

这是我的问题:我正在开发一个C ++应用程序,我需要在执行"long"时展示经典的WaitCursor。操作。为了达到这个目的,我使用像RestoreWaitCursor()这样的API来强制光标到旋转的蓝色圆圈(替换玻璃表的一个
)。

现在,当用户输入来自一个触摸屏面板而不是鼠标,Windows会在很短的时间后自动隐藏鼠标光标(我说500毫秒)。我认为这是一个很好的图形技巧,但是当光标设置为"忙"时并且Windows
隐藏它,用户没有系统忙的信息!

Here's my problem: I'm working on a C++ application and I need to show the classic WaitCursor while performing "long" operations. To achieve this, I use APIs like RestoreWaitCursor() to force the cursor to the rotating blu circle (the one that replaced the glass watch).
Now, when the user input comes from a touchscreen panel instead of a mouse, Windows automatically hides the mouse cursor after a very short time (I'd say 500ms). I think this is a nice graphic trick, but when the cursor is set to "busy" and Windows hides it, the user has no information that the system is busy!

那么,是否可以改变这种行为?即使输入来自触摸屏面板,是否可以防止Windows隐藏鼠标光标?

So, is it possible to change this behavior? Is it possible to prevent Windows from hiding the mouse cursor even when the input comes from a touchscreen panel?

提前感谢所有人!

Luca

推荐答案

您好Luca,

Hi Luca,

感谢您在此处发帖。

>>那么,是否可以更改此行为?即使输入来自触摸屏面板,是否可以防止Windows隐藏鼠标光标?

您是否尝试过调用
ShowCursor
函数显示光标?

Have you tried to call ShowCursor function to show the cursor?

或者您可以在Microsoft社区发帖,看看是否有一些Windows设置可以在Windows触摸屏上启用鼠标指针。

Or you could post on Microsoft Community to see if there has some Windows settings to enable the mouse pointer on Windows touchscreen.

希望这可以帮助你。

最好的问候,

Baron Bi

Baron Bi

这篇关于即使使用触摸屏也能显示鼠标光标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆