如何获取wm_pointer信息 [英] How to get wm_pointer info

查看:120
本文介绍了如何获取wm_pointer信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我尝试通过wm_pointer相关消息获取手写笔设备输入信息,并且有几个。



我对界面感到困惑而试图获取信息。它们是

Hello, I am try to obtain the stylus device input info via wm_pointer related message, and there are several ones.

I am getting puzzled of the interfaces while trying to get info. they are

GetPointerInfo

GetPointerFrameInfo





哪一个我会用吗?有人可以给我一些关于使用情况的完整解释吗?



我尝试了什么:



我已经阅读了msdn,发现每次wm消息到来时,

.

which one shall I use? can someone kindly give me some full explanation about usage?

What I have tried:

I have read the msdn and found that

GetPointerInfo

只会获得一个指针信息,而

will get only one pointer info each time the wm message comes, while the

GetPointerFrameInfo

将获得一组包括非客户区域。它们都映射到一个ID。这与触摸事件完全不同,触摸事件总是来自几个具有不同ID的触发事件。

will get a set of them including none-client area. Both of them are mapped to one ID. this is totally different with touch event which always comes several ones with different ID in each.

推荐答案

函数GetPointerInfo用于关于一个指针的信息,第二个用于多次使用在一个电话中。



GetPointerFrameInfo 全部解释。



您必须在直接上下文中调用此函数(如消息处理程序)获取有效数据的消息。
The function GetPointerInfo is for information on one pointer, the second for multiple use in one call.

In the documentation of GetPointerFrameInfo is all explained.

You must call this function in the direct context (like message handler) of the message to get valid data.


这篇关于如何获取wm_pointer信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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