I have started a clean MFC proiect with dialog based option with CWinApp base class.

I want to organize event handlers functions for buttons in other class that in the main dlg class, but the buttons event handlers that are assigned to the class that I want to use, aren't trigger, the innterupts that are setted to their button click function aren't triggered.

If I put the event handlers in the dlg class it's working, but I want to organize in other class, how can I do that?

Thank you in advance.