Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

Commit 36b98c8

Browse files
committed
Tweak the previous
Now the form still scrolls when you mousewheel over the comboboxes, rather than eating the input
1 parent 5c96360 commit 36b98c8

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

AngelLoader/Forms/MainForm.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,16 @@ static bool TryGetHWndFromMousePos(Message msg, out IntPtr result)
334334
MainSplitContainer.Panel2.Focus();
335335
}
336336
}
337-
if (Control.FromHandle(hWnd) is DarkComboBox { SuppressScrollWheelValueChange: true, Focused: false })
337+
if (Control.FromHandle(hWnd) is DarkComboBox { SuppressScrollWheelValueChange: true, Focused: false } cb)
338338
{
339-
return BlockMessage;
339+
if (cb.Parent is { IsHandleCreated: true })
340+
{
341+
Native.SendMessage(cb.Parent.Handle, m.Msg, m.WParam, m.LParam);
342+
}
343+
else
344+
{
345+
return BlockMessage;
346+
}
340347
}
341348
else
342349
{

0 commit comments

Comments
 (0)