Re: Add mousewheel support to riched20

2005-04-06 Thread Hannu Valtonen
Joris Huizer wrote: > Why not like > > > +SystemParametersInfoW(SPI_GETWHEELSCROLLLINES,0, > &pulScrollLines, 0); > > +gcWheelDelta = GET_WHEEL_DELTA_WPARAM(wParam); > > +if (gcWheelDelta >= WHEEL_DELTA && pulScrollLines) > > + nPos += pulScrollLines * (-gcWheelDelta / WHEEL_DE

Re: Add mousewheel support to riched20

2005-04-06 Thread Joris Huizer
Hannu Valtonen wrote: Hi, This patch adds mousewheel support to the rapidly maturing riched20. Changelog: Add mousewheel support to riched20 - Hannu Valtonen + case WM_MOUSEWHEEL: + { +int gcWheelDelta = 0, nPos = editor->nScrollPosY; +UINT pulScrollLines; + +SystemParametersIn