mirror of
https://github.com/narzoul/DDrawCompat
synced 2024-12-30 08:55:36 +01:00
Handle undocumented menu selection change message
Now the selection is properly cleared also when the mouse leaves the menu window area.
This commit is contained in:
parent
68d3c75c95
commit
96ba6c4b5b
@ -118,6 +118,14 @@ namespace
|
||||
result = onMenuPaint(hwnd, g_origMenuWndProc);
|
||||
break;
|
||||
|
||||
case 0x1e5:
|
||||
if (-1 == wParam)
|
||||
{
|
||||
// Clearing of selection is not caught by WM_MENUSELECT when mouse leaves menu window
|
||||
RedrawWindow(hwnd, nullptr, nullptr, RDW_INVALIDATE);
|
||||
}
|
||||
// fall through to default
|
||||
|
||||
default:
|
||||
result = g_origMenuWndProc(hwnd, msg, wParam, lParam);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user