很简单: 在你的CAddDlg类的OnInitDialog函数中加上你上面的代码GetDlgItem(IDC_EDIT1)->SetFocus();最后记得return FALSE; 其实,不知道返回FALSE是啥意思! 查了说明: Return Value Specifies whether the application has set the input focus to one of the controls in the dialog box. If OnInitDialog retu…