在Radio Button的选择事件中为Combo Box添加不同的Item不就成了?

解决方案 »

  1.   

    试一试在单选框按钮的函数中用
    xxx.SetCurSel ( 1 );
    返回不同选项的值!!
      

  2.   

    void CDel_ComboDlg::OnRadio1() 
    {
    // TODO: Add your control notification handler code here
             m_station.ResetContent();
    m_station.InsertString(0,"ABCDEFG");
    m_station.InsertString(1,"HIJKLMN");
    m_station.InsertString(2,"48000");
    }void CDel_ComboDlg::OnRadio2() 
    {
    // TODO: Add your control notification handler code here
             m_station.ResetContent();
    m_station.InsertString(0,"XXXXX");
    m_station.InsertString(1,"YYYY");
    m_station.InsertString(2,"ZZZZ");
    }
      

  3.   

    谢谢这位大虾
    追加一个小问题
    如果那个下拉式菜单,
    换成list box,列表框呢?
      

  4.   

    一样的方法!combobox 和 listbox  的操作没什么大的区别的,对于数据的操作几乎就是一样的代码
      

  5.   

    那listbox的类
    怎么会没有
    ResetContent
    InsertString