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

查看:46
本文介绍了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 个.

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.

推荐答案

我自己解决了这个问题.只需将单选按钮中的 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

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

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