暂时没有。SetCapture在这种情况下不太中用。 Only the foreground window can capture the mouse. When a background window attempts to do so, the window receives messages only for mouse events that occur when the cursor hot spot is within the visible portion of the window.
不用时,用::ReleaseCapture()释放鼠标。
这样便可以在mousemove事件中知道鼠标在移动了
不用时,用::ReleaseCapture()释放鼠标。
这样便可以在mousemove事件中知道鼠标在移动了
我在非模式对话框移动鼠标,主对话框的鼠标移动消息还是不知道
这局势必须的吗?
还有其他方法吗?
Only the foreground window can capture the mouse. When a background window attempts to do so, the window receives messages only for mouse events that occur when the cursor hot spot is within the visible portion of the window.
3Q