Hi.
I have 2 scrollbars that I want to control by just scrolling one scrollbar. The scrolling function works for both of them, when I override the WndProc method like this:
protected override void WndProc(ref Message m)
{
if (m.Msg == WM_MOUSEWHEEL)
{
Console.WriteLine("WParam: {0}, LParam: {1}", m.WParam, m.LParam);
SendMessage(Schedule2.Handle, WM_MOUSEWHEEL, m.WParam, m.LParam);
}
base.WndProc(ref m);
}
The problem with this is that the other scrollbar I would like to handle is scrolling way to much compared to the first scrollbar.
Is there a way, where I can limit this?
Best regards
Kim