Reputation: 3564
Is it possible to have enabled radio buttons though the user cannot change the value?
Upvotes: 1
Views: 649
Reputation: 11
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
Upvotes: 1
Reputation: 16953
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.
Upvotes: 2