打开要操作的对话框 (注:针对此处的单选按钮,可以通过在OnIntDialog中实现具体代码如下) switch (m_Pen) { case 1: CheckDlgButton(IDC_RADIO1, 1); break;//第二个参数1表示选中,0表示没选中 case 2: CheckDlgButton(IDC_RADIO2, 1); break; case 3: CheckDlgButton(IDC_RADIO3, 1); break; } 相关文章: 2021-12-04 2021-05-21 2022-01-21 2021-06-17 2021-07-22 2022-12-23 2021-12-01 2021-07-29