CodePudding user response:
The same can AddStringCodePudding user response:
CComboBoxEx * pCBE=(CComboBoxEx *) GetComBo ();COMBOBOXEXITEM cbei;
//delete all in the list
PCBE - & gt; ResetContent ();
Cbei. Mask=CBEIF_IMAGE | CBEIF_TEXT |
CBEIF_SELECTEDIMAGE | CBEIF_INDENT;
Cbei. The iItem=0; 802 d "//" Control;
Cbei. PszText="Control 802 d";
Cbei. CchTextMax=MAX_PATH;
Int iImage=i802D;
Cbei. IImage=iImage;
Cbei. ISelectedImage=iImage;
Cbei. IIndent=0;
PCBE - & gt; InsertItem (& amp; Cbei);
CodePudding user response:
http://www.cppblog.com/batstying/articles/115297.html