vc怎么使得鼠标只在mfc的程序窗口范围内移动

2025-06-28 04:44:48
推荐回答(1个)
回答1:

在WM_MOUSEMOVE响应消息里添加
CRect rect;
GetWindowRect(&rect);
ClipCursor(rect);