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. CComboBox

CComboBox

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
3 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.
  • D Offline
    D Offline
    De Nardis Andrea
    wrote on last edited by
    #1

    Hi all, I have to display some dropdown combobox so I am using CComboBox::Create. My combo regularly appears with the edit part the right size, but when I cick on in the list part is 0-heigthed. Some silly question: - what is the heigth of a combo? the edit heigth or the edit + list heigth? - is the CComboBox::SetItemHeigth suitable for me? I tried it but nothing changed! Could you please help me? Best regards. Andrea :)

    D 1 Reply Last reply
    0
    • D De Nardis Andrea

      Hi all, I have to display some dropdown combobox so I am using CComboBox::Create. My combo regularly appears with the edit part the right size, but when I cick on in the list part is 0-heigthed. Some silly question: - what is the heigth of a combo? the edit heigth or the edit + list heigth? - is the CComboBox::SetItemHeigth suitable for me? I tried it but nothing changed! Could you please help me? Best regards. Andrea :)

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

      This worked for me: cb.Create(WS_CHILD|WS_VISIBLE|WS_VSCROLL|CBS_DROPDOWNLIST,CRect(10,10,200,150),this,987); What are you doing different?


      Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

      D 1 Reply Last reply
      0
      • D David Crow

        This worked for me: cb.Create(WS_CHILD|WS_VISIBLE|WS_VSCROLL|CBS_DROPDOWNLIST,CRect(10,10,200,150),this,987); What are you doing different?


        Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

        D Offline
        D Offline
        De Nardis Andrea
        wrote on last edited by
        #3

        Thanx guy this worked for me also!!!! Thanx a lot:) :)

        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