单选按钮已启用,用户无法更改值

发布于 2024-10-08 14:25:12 字数 28 浏览 0 评论 0原文

尽管用户无法更改值,是否可以启用单选按钮?

Is it possible to have enabled radio buttons though the user cannot change the value?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

空袭的梦i 2024-10-15 14:25:12

这是可能的。如果您使用 BS_RADIOBUTTON< 创建单选按钮/a> 样式而不是 BS_AUTORADIOBUTTON 那么当用户单击单选按钮时 Windows 将不会自动更改选择。 (在 Visual Studio 的对话框编辑器中,右键单击单选按钮并将 Auto 属性设置为 False。)

阅读 此页面

It is possible. If you create your radio buttons with the BS_RADIOBUTTON style instead of BS_AUTORADIOBUTTON then Windows will not automatically change the selection when the user clicks a radio button. (In the dialog editor in Visual Studio, right click the radio button and set the Auto property to False.)

Read the "Using Radio Buttons" section of this page in MSDN for more information.

浅紫色的梦幻 2024-10-15 14:25:12

您可以将其设置为 BST_CHECKED 并将 EnableWindow 设置为 FALSE

或..

在单选按钮的每个其他选择上选择您需要选择的单选按钮

either you can setchek it to BST_CHECKED and the EnableWindow to FALSE

or..

on every other selection of radio button make the radio button that you need selected

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文