I have a dialog box on which i have put a Horizontal and vertical Scroll Bar. I want add an event when the user clicks on the scroll bar. But i find that there are no events for the Scroll Bar. Is there any other way of doing it.
I would recommend to create new class derived from CScrollBar ( name it e.g. CMyScrollBar ) and in class wizard add member variable of CMyScrollBar to both scrollbars in your dialog.
Then you can catch all window messages and send notifications ( events ) to parent ( dialog ).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.