Is there a way to set the thumb size of a scrollbar? I have a scrollbar control which has a small height and the button takes up almost the whole distance. See image below.
I found that you could send it a message SB_SETTHUMBSIZE but couldn't find any value or how to do it. I do know it is possible because listboxes and editboxes thumbs change size depending on how many lines there are.
Thanks,
Clint
Mucked around the net and msdn site enough to finally figure it out. ;D
SCROLLINFO scrInfo
scrInfo.cbSize=LEN(scrInfo)
scrInfo.nPage=3
scrInfo.nMin=0
scrInfo.nMax=maxCount
scrInfo.fMask=SIF_PAGE
SetScrollInfo(GETCONTROLHANDLE(win,VScrollbarID),SB_CTL,scrInfo,TRUE)
Later,
Clint