按照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之后是自己不能够获取鼠标消息了,而不是说明上所说的。我看看是不是参数的问题。
原文有一段如下:
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之后是自己不能够获取鼠标消息了,而不是说明上所说的。我看看是不是参数的问题。