checkBox&单选按钮 [英] checkBox & radio Button

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

问题描述

大家好!如何使用单选按钮取消选中复选框?它就像复选框看起来昏暗和不可检查一样,当我点击单选按钮时,我可以选中复选框。你可以帮我代码吗?!我正在使用visual c ++ 2008 express。非常感谢你! :)

解决方案

您可以禁用单选按钮消息处理程序中的复选框。


如果您使用的是MFC,我相信它是

 m_window.EnableWindow(FALSE); 

br mode =hold/>如果不是MFC,那么请问MSDN :: EnableWindow()...


Hello guys! how can i make my checkbox uncheckable using radio button?? it''s like the checkbox looks dim and uncheckable & when i click the radio button, i can able to check the checkbox. can you help me with the codes guys?! i''m using visual c++ 2008 express. thank you very much! :)

解决方案

You may disable the check box in the radio button message handler.


If you are using MFC, I believe it is

m_window.EnableWindow(FALSE);

br mode="hold" />If not MFC, then ask MSDN about ::EnableWindow()...


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

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