开发者

(MFC) CListBox -> Edit Item in List?

I'm curren开发者_如何学Ctly using the CListBox Control for MFC. Is it possible to retain the data inside the List Item but edit it, without deleting then re-adding it?

Thanks!


You can do this by extending CListBox. Check out this code project article.


There's no way to do this, unfortunately.

Even the native list box class doesn't provide any way to edit an entry, without removing and inserting.

The best you can do is extending the CListBox class, either by sub-classing or deriving from it.


The best way (if possible, sure), is replacing CListBox with CListCtrl

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜