by the book, i read that with WM_SIZE message i can get the client size instead use the GetClientRect() function:
case WM_SIZE:
GetClientRect (hwnd, &rect) ;
VerticalScrollSize=rect.bottom;
si.cbSize = sizeof(si);
si.fMask = SIF_ALL;
GetScrollInfo (hwnd, SB_VERT, &si);
si.nMin = 0;
si.nPos = VerticalScroll;
si.nMax = VerticalScrollSize-2;
si.nPage=2;
SetScrollInfo (hwnd, SB_VERT, &si, TRUE);
InvalidateRect(hwnd, NULL, TRUE);
return 0;
but i continue confuse with nMax and nPage... and i belive the nMin is 0(zero).
can anyone explain better please?
because i'm getting wrong thumb size :(