专注于按钮 [英] Get focus to a button

查看:74
本文介绍了专注于按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我在对话框中有一个按钮.我想在加载时将焦点放在该按钮上.我该如何移动?请帮帮我....

[edit]不要大喊大叫.使用所有大写字母被认为是在互联网上大喊大叫,并且粗鲁(使用所有小写字母被认为是幼稚的).如果要认真对待,请使用大写字母. -OriginalGriff [/edit]

Hi all,
I have one button in a dialog box. I want to get Focus to that button on loading. How can I move with this? Please help me....

[edit]DON''T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously. - OriginalGriff[/edit]

推荐答案

使用SetFocus并在WM_INITDIALOG处理程序的末尾返回FALSE ...应该这样做.
希望这对您有帮助...
Use SetFocus and return FALSE at the end of your WM_INITDIALOG handler... this should do it.

Hope this helps...


设置对话框中的焦点不仅仅是调用SetFocus [

在主子目录中
Button1.foucs()
In the main sub
Button1.foucs()


这篇关于专注于按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆