thats sounds like it would work, with a timer added in.
if you just put a little code in the WM_LBUTTONDOWN capture like this:
Code:
case WM_LBUTTONDOWN:
toggle=1;
SetTimer(hwnd,ID_TIMER,200,NULL);
and this as well:
Code:
case WM_LBUTTONUP:
toggle=0;
case WM_TIMER:
if mouseposition correct
scroll;
hmm...... it should probably be along those lines...
maybe, add a mousemove capture, which checks if the cursor is in the right spot, if the mouse button is pushed down (use the toggle variable), then set the timer. otherwise, kill the timer. that way you aren't flooded with timer messages. got it?