mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Added the workaround for MessageBox loops on MouseOverAction.
This commit is contained in:
parent
9c75cf3423
commit
c2b16bd47d
@ -3061,7 +3061,7 @@ LRESULT CMeterWindow::OnMouseMove(UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
|
|
||||||
if (!m_ClickThrough || keyDown)
|
if (!m_ClickThrough || keyDown)
|
||||||
{
|
{
|
||||||
POINT pos;
|
POINT pos, cpos;
|
||||||
pos.x = (SHORT)LOWORD(lParam);
|
pos.x = (SHORT)LOWORD(lParam);
|
||||||
pos.y = (SHORT)HIWORD(lParam);
|
pos.y = (SHORT)HIWORD(lParam);
|
||||||
|
|
||||||
@ -3072,7 +3072,7 @@ LRESULT CMeterWindow::OnMouseMove(UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
}
|
}
|
||||||
|
|
||||||
while (DoMoveAction(pos.x, pos.y, MOUSE_LEAVE)) ;
|
while (DoMoveAction(pos.x, pos.y, MOUSE_LEAVE)) ;
|
||||||
while (DoMoveAction(pos.x, pos.y, MOUSE_OVER)) ;
|
while (GetCursorPos(&cpos) && WindowFromPoint(cpos) == m_Window && DoMoveAction(pos.x, pos.y, MOUSE_OVER)) ;
|
||||||
|
|
||||||
// Handle buttons
|
// Handle buttons
|
||||||
HandleButtons(pos, BUTTONPROC_MOVE, NULL, true);
|
HandleButtons(pos, BUTTONPROC_MOVE, NULL, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user