MFC设置对话框焦点的方法简述

上传:u949194896 浏览: 8 推荐: 0 文件:PDF 大小:34.11KB 上传时间:2020-12-30 19:47:08 版权申诉
本文简单讲述了MFC设置对话框焦点的方法,分享给大家供大家参考。具体实现方法如下: 具体的方法有两种: 1. 设置对话框控件的tab order。 按Ctrl+D即可看见。将需要被设置到焦点的空间的tab order设为1. 2. 对话框的OnInitDialog返回FALSE。解释如下:(摘抄至msdn) If OnInitDialog returns nonzero, Windows sets the input focus to the first control in the dialog box. The application can return 0 only if it h
上传资源
用户评论