0

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

GetDlgItem(IDC_EDITBOX)->EnableWindow(TRUE)

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?

2
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by atrusmre
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.