使用HOOK可以捕捉鼠标、键盘等一系列的东东
打开MSDN,以下主题有关于HOOK的详细解说:
平台SDK/Windows Base Services/Interprocess Communication/Hooks

解决方案 »

  1.   

    按照msdn的说明是应该可以获取窗口以外的鼠标消息的。
    原文有一段如下:
       Call this member function to cause all subsequent mouse (or stylus) input to be sent to the current CWnd object regardless of the position of the cursor. 我试了一下,却是不行的说,setcapture之后是自己不能够获取鼠标消息了,而不是说明上所说的。我看看是不是参数的问题。