Adsense

Donate

Home arrow News arrow CComboBoxEx can not use AddString
CComboBoxEx can not use AddString

The toolbar used CComboBoxEx but when transfer to the AddString it show error. It took me more time to make it clear that CComboBoxEx can’t use AddString. The correct method is below:

   COMBOBOXEXITEM   Item;  
   Item.mask   =   CBEIF_TEXT   ;  
   Item.pszText   =   _T("Text Sample");  
   Item.iItem   =   0;//index  
   m_comboboxex.InsertItem(&Item);
 
< Prev   Next >
© 2017 Minidx File Manager | Minidx Full-text Search Engine
Minidx! is a professional file management system.