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. Removing Combo Box borders

Removing Combo Box borders

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 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.
  • J Offline
    J Offline
    Joel Holdsworth
    wrote on last edited by
    #1

    I must be being really stupid here; but I can't see any way to remove the sunken border which appears by default around a dropdown combo box. Is there any way to remove it? Joel Holdsworth

    4 J 2 Replies Last reply
    0
    • J Joel Holdsworth

      I must be being really stupid here; but I can't see any way to remove the sunken border which appears by default around a dropdown combo box. Is there any way to remove it? Joel Holdsworth

      4 Offline
      4 Offline
      4apai
      wrote on last edited by
      #2

      i cant see too. in my childhood i've use foolowing sollution: if u want to use flat-control interface anywhere change combobox onto edit-button-listbox group with flat property true. the only problem is to syncronize'em :)

      1 Reply Last reply
      0
      • J Joel Holdsworth

        I must be being really stupid here; but I can't see any way to remove the sunken border which appears by default around a dropdown combo box. Is there any way to remove it? Joel Holdsworth

        J Offline
        J Offline
        Jaime Stuardo
        wrote on last edited by
        #3

        Derive your own CComboBox class and implement OnNcPaint handler. If you do nothing in that handler, no border will be appear. That is your starting point to draw your own border. Jaime

        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