.窗口捕获鼠标

CWnd*SetCapture();

在指定窗口捕获鼠标所产生的动作
CWnd*ReleaseCapture()
释放指定窗口的捕获

原文地址:https://www.cnblogs.com/tianlangshu/p/1989551.html