Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
It's a long time since I've done this in MFC...

I made a custom toolbar class for a tool dialog, to which I've added some slider controls for various parameters. Now, in the dialog I want to know when the slider values are altered. How do I get at the CSlider events? (The CSlider is a child of the CToolbar, which is a member of the CDialog).

What I have tried:

I've tried remembering and Googling :)
Posted
Updated 13-Sep-17 14:11pm
Comments
Richard MacCutchan 13-Sep-17 2:22am    
Look at the base class that your class inherits and see what notification events it generates.

1 solution

So, the slider controls call OnHScroll in the toolbar - I simply have to repackage that message and send it on to the parent (the dialog) using SendMessage - easy! ;)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900