请问大家怎么创建radio button控件的对象?别的都能建,可就它难办。

解决方案 »

  1.   


    m_pRadioButton = new CButton();
    m_pRadioButton->Create("radio",BS_RADIOBUTTON, rect, this, 5001); 
    m_pRadioButton->ShowWindow(SW_SHOW);
      

  2.   

    是不是我理解错了,好像你的意思是说用向导给已经存在的控件添加变量?好像确实不能给Radio Button 添加,如果非要添加那就手写吧,指定为CButton类就可以了。
      

  3.   

    我从控件栏里拉了个radio button控件在对话框上,想给它创建对象。
      

  4.   

    好像确实不能给Radio Button 添加,如果非要添加那就手写吧,指定为CButton类就可以了。