I have an mfc dialog based application that creates static controls dynamically whenever a particular button is clicked. Now I need to add an event handler OnClick to those controls. Please help me to solve out this problem.
I am using Visual Studio 2008
What I have tried:
I tried using ON_CONTROL_RANGE, but nothing happens on clicking those controls