Home > Software engineering >  Extended combo box
Extended combo box

Time:09-26

Extended combo box how to add content? And combo box is different, use AddString no, his behind the variable type an EX

CodePudding user response:

The same can AddString

CodePudding 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
  • Related