首 页 ┆ 源码下载 ┆ IT学院 ┆ 字体下载 ┆ 模板下载 ┆ 源码发布 ┆ 广告合作 ┆ 网站地图
► 设为首页
► 加入收藏
► 联系我们
源码下载 >> ASP源码 | PHP源码 | ASP.net源码 | JSP源码 | CGI源码 | VC/C++源码 | VB源码 | Delphi源码 | Flash源码
文章学院 >> 网络编程 | 网页设计 | 图形图象 | 数据库 | 服务器 | 网络媒体 | 网络安全 | 操作系统 | 办公软件 | 软件开发 | 黑客知识
字体下载 >> 精制字体 | 非英字体 | 艺术字体 | 著名字体 | 哥特式 | 简单字体 | 手写体 | 节假日 | 图案字体 | 精度像素 | 中文字体
模板下载 >> 企业门户 | 数码网络 | 休闲娱乐 | 影视音乐 | 旅游名胜 | 文化艺术 | 电子商务 | 个性展示 | 登陆导航 | Flash模板
►►您当前的位置:源码园 → 源码下载 → VC/C++源码 → 系统编程 → 源码源码信息
下载栏目导航
  • 多 媒 体
  • 网络编程
  • 数 据 库
  • 系统编程
  • 游戏编程
  • 算法相关
  • 局 域 网
  • 图像相关
  • 窗体界面
  • 其它类别
推荐源码
  • 扑杀虫子
  • 就爱设计 V6.00 玩酷时代个性版
  • Windows Shell Programming
  • Subdreamer v2.0 Plugins 200509...
  • 青年创业咨询网信息反馈系统
  • LC520美女图片信息发布程序 v1.0...
  • CC城市校友录 v0607(经典版)
  • ndbbs.com会员管理系统v1.0
  • 砺青虚拟主机管理系统 v4.80 免费...
  • DXBBS v8.1 英文MSSQL版
  • 财务管理系统
  • 小屋工作室整站Build20060410
  • MyIE3.01的源代码
  • 无忧传奇私服官方站点(无忧神话)...
  • 可以聊天传送文件抓取屏幕
  • API实现登录win2000
  • 企业级的DLL全部源代码

WinCE下的触控屏驱动程序源代码源码

运行环境:9x/Me/NT/2000/XP/
源码语言:简体中文
源码类型:VC/C++源码 - 系统编程
授权方式:免费软件
源码大小:28.0 KB
推荐星级:
更新时间:2004-11-13 21:41:37
联系方式:暂无联系方式
演示地址:暂无演示
官方主页:暂无提供
图片预览: 没有预览图片
下载统计:
源码简介
The touch screen driver reads input from touch screen hardware and converts it to touch events that are sent to the input system. The driver is also responsible for converting uncalibrated coordinates to calibrated coordinates that take into account any hardware anomalies, such as skew or nonlinear sequences. 

The driver must submit points while the user"s finger or stylus is touching the touch screen. When the user"s finger or stylus is removed from the screen, the driver must submit at least one final event indicating that the user"s finger or stylus tip was removed. The calibrated coordinates must be reported to the nearest one-quarter of a pixel.

The following steps detail the basic algorithm for using the touch screen: 

Call TouchPanelEnable to start the screen sampling. 
Call TouchPanelGetDeviceCaps to request the number of sampling points. 
For every calibration point, perform the following steps: 
Call TouchPanelGetDeviceCaps to get a calibration coordinate. 
Draw a crosshair at the returned coordinate. 
Call TouchPanelReadCalibrationPoint to get calibration data. 
Call TouchPanelSetCalibration to calculate the calibration coefficients. 
After executing this sequence, any finger or stylus samples generated for the screen are passed to the callback function specified in TouchPanelEnable. The driver may pass either calibrated or uncalibrated points to the callback. If the driver has an efficient calibration algorithm, it can return calibrated points. However, if the calibration is computationally intensive, the driver may choose to return uncalibrated points, rather than perform extensive calculations in the high-priority driver thread. The lower priority thread processing points from the callback can then perform the calibration. 

You can calibrate your touch screen without the ENTER key. The GWES keyboard code opens HKEY_LOCAL_MACHINEHARDWAREDEVICEMAPKEYBD and looks for a DWORD value called Status. This is a bit mask combining the KBDI_KEYBOARD_XXX values from %_WINCEROOT%PublicCommonSDKINCKeybd.h. If it is not found, GWES assumes KBDI_KEYBOARD_PRESENT | KBDI_KEYBOARD_ENTER_ESC | KBDI_KEYBOARD_ALPHA_NUM. This registry access only occurs once, when the keyboard driver is loaded. This value is the basis for what you get when you call GetKeyboardStatus. GWES will add or subtract the KBDI_KEYBOARD_ENABLED bit based on EnableHardwareKeyboard calls. The KBDI_KEYBOARD_ENABLED bit is set when the keyboard driver is loaded. The UseEnterEsc behavior can be controlled by a registry key.

The following table shows the touch screen driver functions.

Function Des cription 
DdsiTouchPanelAttach Called when the MDD"s DLL entry point gets a DLL_PROCESS_ATTACH message. 
DdsiTouchPanelDetach Called when the MDD"s DLL entry point gets a DLL_PROCESS_DETACH message. 
DdsiTouchPanelDisable Disables the touch screen device. 
DdsiTouchPanelEnable Applies power to the touch screen device and initializes it for operation. 
DdsiTouchPanelGetDeviceCaps Queries for capabilities of the touch screen device. 
DdsiTouchPanelGetPoint Returns the most recently acquired point and its associated tip-state information. 
DdsiTouchPanelPowerHandler Indicates to the driver that the system is entering or leaving the suspend state. 
DdsiTouchPanelSetMode Sets information about the touch screen device. 
ErrorAnalysis Provides information on the accuracy of the touch screen calibration. 
TouchPanelCalibrateAPoint Converts uncalibrated points to calibrated points. 
TouchPanelDisable Disables the touch screen. 
TouchPanelEnable Enables and re-enables the touch screen. 
TouchPanelGetDeviceCaps Returns information about the capabilities of the touch screen. 
TouchPanelPowerHandler Handles power-state change notifications. 
TouchPanelReadCalibrationAbort Aborts the currently active call to the TouchPanelCalibrateAPoint function 
TouchPanelReadCalibrationPoint Initiates the process of getting a calibration point. 
TouchPanelSetCalibration Initializes calibration information in the vCalcParam global parameter. 
TouchPanelSetMode Sets mode information for a touch screen device.

下载地址
点击此处立即下载
下载说明
* 为了达到最快的下载速度,推荐使用网际快车或迅雷下载本站软件。
* 若无法正常解压,请使用较新版本WinRAR解压本站提供的软件!
* 如果您发现下载链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含破解及注册码均是由网上搜集,若侵犯了你的版权利益,敬请来信通知我们!
关于本站 - 网站帮助 - 广告合作 - 下载声明 - 友情连接 - 网站地图 - 源码发布
Copyright © 2003-2009 Ymyasp.Com. All Rights Reserved .
备案序号:粤ICP备07029071号