CComboBox::DeleteString

int DeleteString( UINT nIndex );

Return Value

If the return value is greater than or equal to 0, then it is a count of the strings remaining in the list. The return value is CB_ERR if nIndex specifies an index greater then the number of items in the list.

//如果返回值大于或等于零,

Parameters

nIndex

Specifies the index to the string that is to be deleted.

Remarks

Deletes a string in the list box of a combo box.

//从一个组合列表框中删除一行

Example

// The pointer to my combo box.extern CComboBox* pmyComboBox;// Delete every other item from the combo box.for (int i=0;i < pmyComboBox->GetCount();i++){ pmyComboBox->DeleteString( i );}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值