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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Combobox

Combobox

Scheduled Pinned Locked Moved C / C++ / MFC
5 Posts 4 Posters 1 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.
  • C Offline
    C Offline
    Chandrasekharan P
    wrote on last edited by
    #1

    I have a combo box and some edit controls in my application. In the combo box there are 8 items. Some values are entered and Selection is made from the combo box and a button is clicked. There will be eight iterations since there are 8 items in the combo box. Everytime the edit control values will change. in the second iteration, if the user forgets to change the combo box value, the system should pop out a message saying that for first event the value is already evaluated...

    C 1 Reply Last reply
    0
    • C Chandrasekharan P

      I have a combo box and some edit controls in my application. In the combo box there are 8 items. Some values are entered and Selection is made from the combo box and a button is clicked. There will be eight iterations since there are 8 items in the combo box. Everytime the edit control values will change. in the second iteration, if the user forgets to change the combo box value, the system should pop out a message saying that for first event the value is already evaluated...

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      And what is your question exactly ? :doh:

      Cédric Moonen Software developer
      Charting control [v3.0] OpenGL game tutorial in C++

      C 1 Reply Last reply
      0
      • C Cedric Moonen

        And what is your question exactly ? :doh:

        Cédric Moonen Software developer
        Charting control [v3.0] OpenGL game tutorial in C++

        C Offline
        C Offline
        Chandrasekharan P
        wrote on last edited by
        #3

        Oh Sorry Cedric... How do i check if the earlier item in the combo box is already used.

        N C 2 Replies Last reply
        0
        • C Chandrasekharan P

          Oh Sorry Cedric... How do i check if the earlier item in the combo box is already used.

          N Offline
          N Offline
          Niklas L
          wrote on last edited by
          #4

          Could you not remove 'used' items from the combobox? That would eliminate an erroneous input from the user if I understand you correctly.

          home

          1 Reply Last reply
          0
          • C Chandrasekharan P

            Oh Sorry Cedric... How do i check if the earlier item in the combo box is already used.

            C Offline
            C Offline
            Code o mat
            wrote on last edited by
            #5

            If you insist on having the items in the combo box even after they were used you could try using their itemdata to indicate if they have been used or not. -By default itemdatas are zero -When your user hits the button, check the itemdata (CComboBox::GetItemData[^]) of the currently selected item, if any, if it is not zero, warn the user and don't continue, if it is zero, then use the item -when using the item, set its itemdata (CComboBoxSetItemData[^] to 1 for example

            > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Computers don't kill programs, users kill programs < > "It doesn't work, fix it" does not qualify as a bug report. <

            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