开发者

Radio buttons enabled, user cannot change the value

开发者 https://www.devze.com 2023-01-31 05:11 出处:网络
Is it possible to have enabled rad开发者_Go百科io buttons though the user cannot change the value?It is possible. If you create your radio buttons with the BS_RADIOBUTTON style instead of BS_AUTORADIO

Is it possible to have enabled rad开发者_Go百科io buttons though the user cannot change the value?


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消