我是从VB转过来的,有很多东西不会,请见谅
我在VB中是list1.addxxxxxxxxx
就行了,但我在VC中(LISTBOX的ID为ID_LIST1),我使有
ID_LIST1->add 没反应的?我应该怎样做?谢谢

解决方案 »

  1.   

    CListBox* pList = (CListBox*)GetDlgItem(IDC_LIST1);
    pList->AddString("djl");增加一行
      

  2.   

    CListBox* pList = (CListBox*)GetDlgItem(IDC_LIST1);
    请问能不能解释一下这句话的含意呢?
      

  3.   

    就是获取这个LISTBOX控件的指针。
      

  4.   

    CListBox* pList = (CListBox*)GetDlgItem(IDC_LIST1);
    请问能不能解释一下这句话的含意呢?
    ==================================>
    That is get the ListBox's handle of IDC_LIST1 and attach it to the 
    CListBox class. then the handle is m_hWnd of CListbox