如何使用Windows API在Java中获取当前鼠标光标的类型? [英] How to get current mouse cursor type using windows API in java?
本文介绍了如何使用Windows API在Java中获取当前鼠标光标的类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎样才能使用Windows API Java当前的鼠标光标的类型?
(游标类型的意思是:指针,文字光标,光标忙着和类别的其余部分)
How can i get the current mouse cursor type using windows API in java ? (Cursor type means : pointer, text cursor , busy cursor and the rest of the categories)
我发现一个链接的在这里
其中API给定为
BOOL WINAPI GetCursorInfo(
__inout PCURSORINFO pci
);
但如何使用API在Java
But how to use the api in java
推荐答案
我想你会得到最接近的是THRU:
I think the closest you're going to get is thru:
- 找到你的Java应用程序的组件是focusOwner
- 呼叫getCursor()的getType();
这篇关于如何使用Windows API在Java中获取当前鼠标光标的类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文