对话框添加控件(转载请注明出处,谢谢!!!)

  1. 打开要操作的对话框
    这里写图片描述
    (注:针对此处的单选按钮,可以通过在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;
    }

猜你喜欢

转载自blog.csdn.net/qq_42416030/article/details/81328268
今日推荐