windows_event.docVIP

  • 0
  • 0
  • 约8.31千字
  • 约 16页
  • 2016-12-29 发布于重庆
  • 举报
窗体顶端 用户名:?? 密码: 登录 注册 开发笔记 交流的天地,技术的摇篮,交友,交流 ? 主页博客相册|个人档案 |好友 ? 查看文章 ? Windows键盘消息与键值 2006年11月02日 星期四 09:17 Windows键盘消息与健值 2006-10-03 00:24 //例程 #include windows.h ?? void SetNumLock( BOOL bState ) ?? { ????? BYTE keyState[256]; ????? GetKeyboardState((LPBYTE)keyState);//得到键盘状态 ????? if( (bState !(keyState[VK_NUMLOCK] 1)) || ????????? (!bState (keyState[VK_NUMLOCK] 1)) ) ????? { ????? // 模拟键盘Num Lock按键消息 ???????? keybd_event( VK_NUMLOCK,//Virtual-Key Codes ????????????????????? 0x45, ????????????????????? KEYEVENTF_EXTENDEDKEY | 0, ????????????????????? 0 );//按下 ????? // Simulate a

文档评论(0)

1亿VIP精品文档

相关文档