更新单选按钮专注于更新按钮 [英] Update Radio button focus on Update Button

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

问题描述

我的基于MFC对话框的应用程序有8个单选按钮在组中;它们的默认选择在第4个按钮上,因此在初始化时我传递了正确的默认整数,如下所示:

m_LedSelect(4)

但是当我在应用程序中的另一个按钮上添加更新事件时,我重新初始化如下:

m_LedSelect = 4;

但是没有发生变化,那么我为它做了什么?

I my MFC dialog based application there are 8 radio buttons are in group;their default selection is on 4th button,so that at the initialization time I passed default integer that is being correct as given below:
m_LedSelect(4)
but when I add event of update their selection on another button in application,i reinitialize as given below:
m_LedSelect=4;
but there is no changes occur,so then what I do for it?

推荐答案

您是否忘记致电 UpdateData(FALSE); [ ^ 之后
Have you forgot to call UpdateData(FALSE);[^] after that


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

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