【MFC】如何取消按钮的默认选中,默认高亮

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/h84121599/article/details/82592257

环境:win10,vs2017

问题:

一运行程序,下图这个按钮就会默认选中高亮

解决方法:

① 首先在属性设置里面,将按钮的DefaultButton属性设为False

② 在该窗口的OnInitDialog函数(单/多文档下的OnCreate函数)中,将返回值改为FALSE

然后就不会默认选中了

扫描二维码关注公众号,回复: 4516397 查看本文章

猜你喜欢

转载自blog.csdn.net/h84121599/article/details/82592257