多点触摸操作示例
2016-08-23
0 0 0
暂无评分
其他
如何获取积分?
对于此示例,创建一个CDrawingObject类,可以编程方式平移,旋转或缩放。 AnIManipulationProcessor接口被实例化。一种操纵事件接收器创建接受一个指向theCDrawingObject类,在其构造函数中IManipulationProcessor接口。连接点的IManipulationProcessor在操纵事件接收器实现创建,这样的事件接收器接收由theIManipulationProcessor引发的事件。触摸数据被馈送到IManipulationProcessor界面,然后该接口将提高_IManipulationEvent事件。在CManipulationEventSink类的事件处理程序将通过调用访问器上的指针CDrawingObject更新CDrawingObject的方向。
下面的代码显示窗口是如何设置的触摸,以及如何CDrawingObject andIManipulationProcessor被实例化,并传递给CManipulationEventSink构造函数。
下面的代码显示窗口是如何设置的触摸,以及如何CDrawingObject andIManipulationProcessor被实例化,并传递给CManipulationEventSink构造函数。
c++
操作
示例
相关源码推荐
局部路径规划算法-DWA算法
0
0
暂无评分
enDAQ-Shock-Data-Share-SRS-Blog
0
0
暂无评分
自制仿生DOS
0
0
暂无评分
在Windows应用程序里调用chatGPT
0
0
暂无评分
测试Hello world
0
0
暂无评分
暂无评论