Advertisement

Advanced win32 scrollbar message

Started by April 16, 2001 06:40 AM
1 comment, last by Zeblar Nagrim 23 years, 9 months ago
I´m looking for a win32 message when the user move the vertical or horizontal scrollbar. I know there is a WM_VSCROLL and WM_HSCROLL message. But I think (not absolutly sure) that windows call this message when the user have released the mouse button, and this isn´t what I´m looking for. I wan´t to update all DX graphic (scroll screen) when the scrollbar have changed the position. Thanx, Zeblar Nagrim, Lord of Chaos

You might want to check to see if when you receive a WM_VSCROLL/HSCROLL the sub message is SB_THUMBTRACK or something similar.

Also, you might want to check out WM_NCLBUTTONDOWN or some other derivation for the hit testing value when the user clicks and holds the mouse button in a non-client area (scrollbars,etc.).

Failing that, fire up the spy program and point it to a window with scrollbars. Perform the operations your looking for and see what messages are generated (you might want to filter for specific types of messages).

HTH,

-Z
Advertisement
Thanks for your reply. Now it works. The problem was that I forgot to call InvalidateRect and UpdateWindow...



Zeblar Nagrim, Lord of Chaos

This topic is closed to new replies.

Advertisement