Improve ToolbarDlg slide in / slide out performance

This commit is contained in:
yuanyuanxiang
2025-12-25 18:49:10 +01:00
parent a297f3419f
commit 9d1e9eb2af
5 changed files with 72 additions and 19 deletions

View File

@@ -741,6 +741,9 @@ BOOL CScreenSpyDlg::PreTranslateMessage(MSG* pMsg)
if (pMsg->wParam != VK_LWIN && pMsg->wParam != VK_RWIN) {
SendScaledMouseMessage(pMsg, true);
}
if (pMsg->message == WM_SYSKEYDOWN && pMsg->wParam == VK_F4) {
return TRUE; // 屏蔽 Alt + F4
}
if (pMsg->wParam == VK_RETURN || pMsg->wParam == VK_ESCAPE)
return TRUE;// 屏蔽Enter和ESC关闭对话
break;
@@ -987,7 +990,7 @@ void CScreenSpyDlg::EnterFullScreen()
// 7. 标记全屏模式
m_bFullScreen = true;
SetTimer(1, 100, NULL);
SetTimer(1, 50, NULL);
}
}