Hi! Maybe a stupid error, but my code only inserts garbage:
Code:
m_cmbAddress.Create(WS_CHILD|WS_VISIBLE | CBS_AUTOHSCROLL | CBS_DROPDOWN | CBS_HASSTRINGS ,
                                       rect, &m_wndComboTool, ID_ADDRESS);
m_ImageListCombo.Create (16,16,TRUE,1,1);
m_ImageListCombo.Add(AfxGetApp()->LoadIcon(IDR_MAINFRAME));
m_cmbAddress.SetImageList (&m_ImageListCombo);
	
m_cmbAddress.ShowWindow(SW_SHOW);

COMBOBOXEXITEM     cbi;
CString            str = "prueba";
cbi.mask = CBEIF_TEXT;
cbi.iItem = 0;
cbi.pszText = (LPTSTR)(LPCTSTR)str;
cbi.cchTextMax = str.GetLength();
m_cmbAddress.InsertItem (&cbi);
m_cmbAddress is a CComboBoxEx.