I have written this code and now i have dynamically create combo box.
// TODO: Add extra initialization here
CComboBox *Combo = new CComboBox;
Combo->Create(WS_CHILD | WS_VISIBLE |
WS_VSCROLL | CBS_DROPDOWNLIST,
CRect(10, 50, 100, 150), this, 0x1448);
return TRUE; // return TRUE unless you set the focus to a control
When a user clicks an item in the combo box to select it, I want to find out what the user clicked.
I am interested in the string that the user selected in the combo box,but i need variable for this dinamically created combo box.
My question is how to create a variable.
I hope you understand what i want to do and i am sorry for my bad English