MFC设置对话框的焦点
来源:互联网 发布:社会融资规模数据 编辑:程序博客网 时间:2024/05/02 00:48
方法有二:
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 has explicitly set the input focus to one of the controls in the dialog box.
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 has explicitly set the input focus to one of the controls in the dialog box.
0 0
- MFC设置对话框的焦点
- MFC设置对话框的焦点
- MFC对话框设置焦点
- MFC显示非模态对话框的时候,设置它不获取焦点!
- MFC 对话框焦点默认
- MFC-对话框背景图片的设置
- MFC对话框背景图片的设置
- MFC中设置焦点
- MFC 设置焦点按钮
- 对话框设置焦点在edit
- MFC 基于对话框的背景图片设置
- MFC对话框背景色的设置
- MFC中关于对话框的一些设置
- 设置MFC对话框的xp界面风格
- MFC设置对话框合理性验证的字符串
- MFC 基于对话框的按钮图标设置
- MFC设置对话框弹出的位置
- 动态设置mfc对话框的标题
- java 基本类型详解 及 常见问题
- Cygwin的替代品 Gow
- 看见好的结案时间放哪.DFGSDFG
- linux字体发虚的解决方法【转载】
- Android (4-3)手機透過藍牙接收 Arduino 類比腳位狀態
- MFC设置对话框的焦点
- 慈善的问题
- Java建造者模式
- Java多线程小结
- java反射机制
- SUDT 2502 - 火星计数法
- 动态设置"按钮"为default属性
- 使用ubuntu常见问题的解决办法
- hdu 3775 pick&多边形面积应用 ~~~~跪在long long上