Radio buttons enabled, user cannot change the value
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
精彩评论