fix: #176 #177 Desktop control does not work properly

This commit is contained in:
yuanyuanxiang
2025-08-02 14:35:53 +08:00
parent 6849f66f1e
commit ef7e065cc8
2 changed files with 13 additions and 16 deletions

View File

@@ -773,11 +773,11 @@ void CHideScreenSpyDlg::SendScaledMouseMessage(MSG* pMsg, bool makeLP) {
}
MYMSG msg(*pMsg);
auto low = ((LONG)LOWORD(pMsg->lParam)) * m_wZoom;
auto high = ((LONG)HIWORD(pMsg->lParam)) * m_hZoom;
LONG low = ((LONG)LOWORD(pMsg->lParam)) * m_wZoom;
LONG high = ((LONG)HIWORD(pMsg->lParam)) * m_hZoom;
if(makeLP) msg.lParam = MAKELPARAM(low, high);
msg.pt.x = (int)(low + m_rect.left);
msg.pt.y = (int)(high + m_rect.top);
msg.pt.x = low + m_rect.left;
msg.pt.y = high + m_rect.top;
SendCommand(msg);
}