I have a scroll bar control on a form. Why the form receives WM_VSCROLL message twice when I click on the scroll bar? And has anybody a sample of using scroll bar control?
You get WM_VSCROLL when you slide the "thumb" and again when you release the thumb. There might be other cases of more than enough messages. You probably want to handle only these cases of loword(wParam): 0=SB_LINEUP 1=SB_LINEDOWN 2=SB_PAGEUP 3=SB_PAGEDOWN 4=SB_THUMBPOSITION (on release of thumb) 5=SB_THUMBTRACK I put together a demo: www.hammick.com/hcs/scroll.zip
Thanks a lot, Larry Hammick! Your reply and sample are very useful for me!