ScrollBar Message Handling
-
I have a group of Buttons which I create at runtime. What I need to be able to do is add a ScrollBar to my form, which hides\shows the buttons that are in or out of my scrollable area. I have created a CScrollBar at runtime, but cannot generate a Message Handler to handle the scrolling. With the Buttons, I used ON_CONTROL_RANGE to specify the individual button ID, and do whatever I wanted with it. However I cant get a similar thing to work with my ScrollBar. Long winded description I know, just wondered if anybody had experienced anything similar.
-
I have a group of Buttons which I create at runtime. What I need to be able to do is add a ScrollBar to my form, which hides\shows the buttons that are in or out of my scrollable area. I have created a CScrollBar at runtime, but cannot generate a Message Handler to handle the scrolling. With the Buttons, I used ON_CONTROL_RANGE to specify the individual button ID, and do whatever I wanted with it. However I cant get a similar thing to work with my ScrollBar. Long winded description I know, just wondered if anybody had experienced anything similar.
Scroll bars send WM_HSCROLL or WM_VSCROLL messages to it's parent window.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!
Honoured as one of The Most Helpful Members of 2004