Hi everyone
I have created a class CMyButton inherit CButton in MFC and putted it on parent frame.
A problem that I can call event click button (CMyButton) by message:
ON_BN_CLICKED(CMyButton's UINT,function)
But I don't want to do that because it's hard to manage all events in my program.
Can I manage buttons' events like C#?
---in C#:
Button myButton = new Button();
myButton .Click+=new EventHandler(myButton's click function);
Please give me the solutions. Thank you.
Start Free Trial