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. Doubt regarding the combo box

Doubt regarding the combo box

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 Posts 5 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.
  • U Offline
    U Offline
    User 3037427
    wrote on last edited by
    #1

    How can i make the combo box to drop down automatically?

    _ J D 4 Replies Last reply
    0
    • U User 3037427

      How can i make the combo box to drop down automatically?

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      m_combobox.SendMessage(CB_SHOWDROPDOWN ,(WPARAM)true,0); Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

      1 Reply Last reply
      0
      • U User 3037427

        How can i make the combo box to drop down automatically?

        J Offline
        J Offline
        Jesal Rana
        wrote on last edited by
        #3

        Just follow the method below u will get ur rsult. Right click on the combo box; Select ‘Properties’ from the list displayed. This will open the ‘Properties’ window; Click on ‘Event’ tab and place your cursor next to the ‘On Got Focus’ event; Then, click on the ‘…’ button; Select ‘Code Builder’ from the code builder window and click on OK. The following Subprocedure will be created: Private Sub Combo2_GotFocus() End Sub You can also call the function on Event of Mouse Move. OK

        1 Reply Last reply
        0
        • U User 3037427

          How can i make the combo box to drop down automatically?

          _ Offline
          _ Offline
          _AnsHUMAN_
          wrote on last edited by
          #4

          alternatively you can also use m_combobox.ShowDropDown(); Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

          L 1 Reply Last reply
          0
          • _ _AnsHUMAN_

            alternatively you can also use m_combobox.ShowDropDown(); Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

            L Offline
            L Offline
            Laxman Auti
            wrote on last edited by
            #5

            _AnShUmAn_ wrote:

            alternatively you can also use m_combobox.ShowDropDown();

            // Show the dropdown list box if it is not already dropped.
            if (!pmyComboBox->GetDroppedState())
            pmyComboBox->ShowDropDown(TRUE);

            Knock out 't' from can't, You can if you think you can :cool:

            1 Reply Last reply
            0
            • U User 3037427

              How can i make the combo box to drop down automatically?

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              Use the CBS_SIMPLE style.


              "The largest fire starts but with the smallest spark." - David Crow

              "Judge not by the eye but by the heart." - Native American Proverb

              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