Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How can I remove an item in Combo box's list box ?

How can I remove an item in Combo box's list box ?

Scheduled Pinned Locked Moved C / C++ / MFC
questiondesignhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SherTeks
    wrote on last edited by
    #1

    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.

    A 1 Reply Last reply
    0
    • S SherTeks

      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.

      A Offline
      A Offline
      AlexAbramov
      wrote on last edited by
      #2

      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[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups