Say I have an edit box in a MFC application (let's call it IDC_EDITBOX), and I enable (because I have it greyed out by default)it using


How do I set the focus to that control? In other words, when I enable the control, how can I get the cursor to be in the edit box without the user clicking the mouse in the edit box?



regards Niek