单选按钮已启用,用户无法更改值
尽管用户无法更改值,是否可以启用单选按钮?
Is it possible to have enabled radio buttons though the user cannot change the value?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
尽管用户无法更改值,是否可以启用单选按钮?
Is it possible to have enabled radio buttons though the user cannot change the value?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
这是可能的。如果您使用
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 ofBS_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.
您可以将其设置为 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