Advertisement

08.25.2008 at 03:31AM PDT, ID: 23674840 | Points: 500
[x]
Attachment Details

How to manage events of controls (button,...) by itself?

Asked by JeanneZemaitis in Windows MFC Programming

Tags:

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
[+][-]08.25.2008 at 03:47AM PDT, ID: 22304405

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.25.2008 at 04:23AM PDT, ID: 22304563

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.25.2008 at 10:14AM PDT, ID: 22307230

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 02:22AM PDT, ID: 22312789

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.29.2008 at 12:58AM PDT, ID: 22343241

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.29.2008 at 02:03AM PDT, ID: 22343520

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628