ajouter un event sur un control ?
Bonjour,
j'ai cr�er dynamiquement un control ListBox de cette fa�on
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
CString test;
m_editBox.GetWindowText(test);
//CMenu l_menu;
CListBox * l_box = new CListBox();
RECT rect;
m_editBox.GetWindowRect(&rect);
ScreenToClient(&rect);
rect.top = rect.bottom;
rect.bottom += 100;
l_box->Create(WS_CHILD|WS_VISIBLE|LBS_STANDARD|WS_HSCROLL, rect ,this,ID_LISTBOX);
l_box->AddString("choice 1");
l_box->AddString("choice 2");
l_box->AddString("choice 3");
l_box->AddString("choice 4");
l_box->AddString("choice 5");
l_box->AddString("choice 6"); |
J'aimerai rajouter un �v�nement pour r�cup�rer le contenu qu'une personne � cliquer dans la listBox
Comment faire ?
Merci d'avance