Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing Events to Vertical Scroll Bar

Status
Not open for further replies.

raochetan

Programmer
Aug 20, 2001
62
IN
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.

Thanks in advance.

raochetan
 
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 ).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top