Hello
I'm using Win32 API - Visual C and use and catch messages from
scrollbars that i use with my main window. The problem is that once i
move the scroll thumb it jumps back to 0 when i release it. Why is
that? How can this be fixed?
Here is how i tried, but still jumps back to zero:
case WM_HSCROLL:
{
int nScrollCode = (int)LOWORD(wParam);
int nPos = (short int)HIWORD(wParam);
if (nPos != 0);
nTest = SetScrollPos(hWnd, SB_HORZ, nPos, TRUE);
nHPosition = nPos;
InvalidateRect(hWnd, NULL, false);
}
break;
Thanks