MFC unable to click button that is on a tab

Mar 9, 2017 at 4:34am
Hi guys!

I have been beating my head against a wall for two days now trying to figure out what it is that I am doing wrong with no luck so now I am turning here.

I created a MFC app with 5 tabs(Dialoges) on it. The first dialog has a button on it. I created an event handler that makes the button open a messagebox that reads “testing.”

However it will not work. I can not see why. I have literally spent the past two days trying everything I can think of under the sun to get it to work with no luck.

I put the project on google drive and made a share:
https://drive.google.com/drive/folders/0B5kblhg6ie8Tb1hTbWRTUXo3NUU?usp=sharing

It was made on Visual Studio 2017.
I know it has got to be something simple that I am overlooking. It always is. Any ideas?

Oh and I did confirm that buttons work fine on the main dialog just not on any of the tabbed dialogs.
Last edited on Mar 9, 2017 at 4:35am
Mar 9, 2017 at 12:06pm
You need to add the event handlers in your dialog class, not in the main app.
Mar 11, 2017 at 12:28pm
u da man thomas. I knew it was something simple. Solved.
Topic archived. No new replies allowed.