I have written this code and now i have dynamically create combo box.

Code:

BOOL CProjectDlg::OnInitDialog()
{
    CDialog::OnInitDialog();

    SetIcon(m_hIcon, TRUE);
    SetIcon(m_hIcon, FALSE);

    // 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);

   Combo->AddString("First");
   Combo->AddString("Second");
   Combo>AddString("Third");

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