C ++ 2个相同形式的单独组的单选按钮WINAPI(无MFC) [英] C++ 2 separate groups of radio buttons in the same form WINAPI (No MFC)

查看:164
本文介绍了C ++ 2个相同形式的单独组的单选按钮WINAPI(无MFC)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的程序的对话框中创建2个单独的单选按钮组,但我不能让它正常工作。根据我的理解,我需要使用Group属性,但我没有得到所需的结果。

I am looking to create 2 separate groups of radio buttons in a dialog box in my program but I cant quite get it to work correctly. As I understand it I need to be using the Group property but I am not getting the desired result.

我有2个单选按钮,我希望用户选择1个,然后单独一组6个用户也选择1个。
$ b $任何帮助我指向正确的方向将是伟大的。

I have 2 radio buttons that I wish the user to select 1 of, then a separate group of 6 which the user also selects 1 of.
Any help to point me in the right direction would be great.

推荐答案

我自己解决了问题。简单地将1个单选按钮设置为true并保持其余false给我想要的结果。我没有在代码中这样做。我只是使用属性视图

I have Solved the problem myself. Simply setting 1 of the radio buttons to true and leaving the rest false gave me the desired result. I didn't do this in code. I was just using the the properties view

这篇关于C ++ 2个相同形式的单独组的单选按钮WINAPI(无MFC)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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