1、MFC 中获取对话框中控件焦点的方法
GetDlgItem(控件的ID)->SetFocus();
如果想让对话框一加载完成后某个控件就可以获取到焦点的话,应该在CxxDlg类的OnPaint()函数后面添加上述代码
Copyright @ 2024 LearnerYQY Powered by .NET 8.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster