How can I remove an item in Combo box's list box ?
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Is it possible (and a rationale design) to show a menu on right-click of the list box item of a combo box and remove the item by clicking a menu item say 'Remove Item'. Any similar help material/article are welcome. Thanks in Advance.
I would try creating a context menu with CreatePopupMenu() and then just delete the current selection when you click "Remove item." CreatePopupMenu http://msdn.microsoft.com/en-us/library/ms647626(VS.85).aspx[^] CB_GETCURSEL http://msdn.microsoft.com/en-us/library/bb775845(VS.85).aspx[^][^] CB_DELETESTRING http://msdn.microsoft.com/en-us/library/bb775830(VS.85).aspx[^]