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. Urgent:: Problem in Changing the style of ComboBox

Urgent:: Problem in Changing the style of ComboBox

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++
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.
  • D Offline
    D Offline
    Dhanush
    wrote on last edited by
    #1

    Hello everybody, In a program i need to change the style of a ComboBox (Using Win32 SDK in ATL) from CBS_DROPDOWN to CBS_DROPDOWNLIST (either way). I tried using SetWindowLong() and ModifyStyle(), but failed in both the ways and failed to get what i want. If anybody knows plz help me. Even i tried with subclassing. Thanx in advance.:confused:

    T 1 Reply Last reply
    0
    • D Dhanush

      Hello everybody, In a program i need to change the style of a ComboBox (Using Win32 SDK in ATL) from CBS_DROPDOWN to CBS_DROPDOWNLIST (either way). I tried using SetWindowLong() and ModifyStyle(), but failed in both the ways and failed to get what i want. If anybody knows plz help me. Even i tried with subclassing. Thanx in advance.:confused:

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      I think you'll have to re-create the combo - you can't change these styles at runtime. Save the control ID and position, then call DestroyWindow and Create with appropriate styles. Tomasz Sowinski -- http://www.shooltz.com

      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