Scrollbar moves back after WM_VSCROLL

Posted by user146780 on Stack Overflow See other posts from Stack Overflow or by user146780
Published on 2010-05-16T14:21:37Z Indexed on 2010/05/16 14:30 UTC
Read the original article Hit count: 126

Filed under:
|
|

I have a window with its own H and V scrolling. I'm handling the event like this:

case WM_VSCROLL:

        SetScrollPos(hWnd, SB_VERT, (int)HIWORD(wParam), TRUE);

        break;

all I want is for the position of the scroll bar to stay once I release my mouse but what it's doing is just going back to the top after. What am I doing wrong?

Thanks

© Stack Overflow or respective owner

Related posts about c++

Related posts about c