How's i said before i'am making ownerdraw controls library.
I need to know how to calculate scrollbar thumb.
Doe's anyone know's how to?
Posted on 2003-03-16 04:14:35 by Anorak
I just need some ideas...
Posted on 2003-03-16 12:01:46 by Anorak
Hi, Anorak,

I am not sure why you need the RECT of the scroll box thumb, but you can get its position by invoking GetScrollInfo and set its position by invoking SetScrollInfo.

Just define a SCROLLINFO type structure and set its members accordingly. The nPage member will then determine the size of your scrollbox automatically.

Hope this helps.

Posted on 2003-03-19 19:52:56 by VVV
Use GetScrollBarInfo and your top and bottom of the thumb will be in the SCROLLBARINFO structure, the height or width can be found in dxyLineButton

cbSize DWORD ?
rcScrollBar RECT <?>
dxyLineButton DWORD ?
xyThumbTop DWORD ?
xyThumbBottom DWORD ?
reserved DWORD ?
rgstate DWORD 6 DUP (?)


Invoke GetScrollBarInfo,hScrollBar,OBJID_CLIENT,ADDR pSBI
Posted on 2003-03-19 20:06:21 by donkey
thank's donkey
Posted on 2003-03-20 06:44:20 by Anorak