
Issues with Radio Buttons
I have a pair of radio buttons on a dialog box that are misbehaving. In
the design mode (Resource Editor) I can tab through them fine, but not
in run mode. The tab skips over them. They are definitely in the tab
order, according to the Layout viewer.
The properties sheet has one button with "Group" set, and "Tab Stop" on
both.
Also, I can't force a button to be checked in run mode. I use this code:
CButton *btn;
btn = (CButton *)GetDlgItem(btn_id);
btn->SetCheck(TRUE);
.. from within OnInitDialog(). Works fine for other dialogs, but not
this one. Any clues to offer me?
Thanks.