title: How to implement the event handler for a MFC CEdit ON_EN_SETFOCUS?
body: <p>I'm just maintaining some MFC C++ code and I have a screen with many <code>CEdit</code> objects. </p>
  
  <p>I want to implement the <code>OnFocus</code> event for all of then but write only one method to treat the event. </p>
  
  <p>To do that I would need to know the <code>CEdit</code> ID that fired the event but it looks like the implementation of the <code>OnFocus</code> event in MFC does not have this as a parameter (compared to some other events like <code>OnCtlColor</code> that has <code>CWnd*</code> object as a parameter). </p>
  
  <p>I just refuse to believe that I have to implement a small method for each single <code>CEdit</code> passing its ID to the main method that will do what I want!. If that's the only solution, shame on you MFC!</p>