1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00

Fixed highlighting stuck on scroll bar shaft after releasing mouse button

This commit is contained in:
narzoul 2020-12-31 18:12:30 +01:00
parent 5911951d08
commit 7e9ceb3c9c

View File

@ -182,6 +182,17 @@ namespace
// Disable VirtualizeDesktopPainting shim
return 0;
}
return origDefWindowProc(hwnd, msg, wParam, lParam);
}
case WM_NCLBUTTONDOWN:
{
LRESULT result = origDefWindowProc(hwnd, msg, wParam, lParam);
if (wParam == HTHSCROLL || wParam == HTVSCROLL)
{
onNcPaint(hwnd, origDefWindowProc);
}
return result;
}
}