i'm testing the win32 scrollbars, but i'm with 1 problem: when i use the SB_THUMBPOSITION message, why the window isn't repainted( the WM_PAINT message isn't used)?
case WM_VSCROLL:
switch (LOWORD (wParam))
{
case SB_LINEUP:
VerticalScroll-=1;
break;
case SB_LINEDOWN:
VerticalScroll+=1;
break;
case SB_THUMBPOSITION:
VerticalScroll=HIWORD (wParam);
break;
case SB_PAGEDOWN:
VerticalScroll+=10;
break;
case SB_PAGEUP:
VerticalScroll-=10;
break;
}
SetScrollPos (hwnd, SB_VERT, VerticalScroll, TRUE) ;
InvalidateRect(hwnd,NULL,TRUE);
return 0;