如题,谢谢.

解决方案 »

  1.   

    锁定倒没做过
    只是做过 屏蔽一些键  利用hook 
    钩子函数
      

  2.   

    安装鼠标和键盘hook,截获输入
    不过对于全局hook要vc
      

  3.   

    楼主可以参看一下:
    http://dev.hackbase.com/hackbase34/how531078.htm
      

  4.   

    RECT rcClip;           // new area for ClipCursor
    RECT rcOldClip;        // previous area for ClipCursor
     
    // Get the dimensions of the application's window.  
    GetWindowRect(&rcClip);  
    // Confine the cursor to the application's window.  
    ClipCursor(&rcClip); 
    这段c++代码可以把鼠标锁定在当前窗口所在的区域内。