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

ListCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 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.
  • K Offline
    K Offline
    karmendra_js
    wrote on last edited by
    #1

    Hi, I want to disable multiple row select in a list control. It should select only one row at a time how can i do this. Thanks

    M 1 Reply Last reply
    0
    • K karmendra_js

      Hi, I want to disable multiple row select in a list control. It should select only one row at a time how can i do this. Thanks

      M Offline
      M Offline
      muthuramji
      wrote on last edited by
      #2

      In design view select list control properties->styles->single selection check this box , u r job is done ! Muthu Ramji.Al.V Software developer(VC++) Sify Limited muthu_ramji@sifycorp.com

      K 1 Reply Last reply
      0
      • M muthuramji

        In design view select list control properties->styles->single selection check this box , u r job is done ! Muthu Ramji.Al.V Software developer(VC++) Sify Limited muthu_ramji@sifycorp.com

        K Offline
        K Offline
        karmendra_js
        wrote on last edited by
        #3

        I want to do it programatically. It is in LVS_REPORT style. What you are saying is for ListBoxCtrl. Thanks

        M 1 Reply Last reply
        0
        • K karmendra_js

          I want to do it programatically. It is in LVS_REPORT style. What you are saying is for ListBoxCtrl. Thanks

          M Offline
          M Offline
          muthuramji
          wrote on last edited by
          #4

          Dear friend, if u have 2 do in code then try this, 1. //-------- Start create a list control using dwstyle LVS_SINGLESEL CListCtrl* pmyListCtrl=new CListCtrl; pmyListCtrl->Create(WS_CHILD|WS_VISIBLE|WS_BORDER|LVS_REPORT|LVS_SINGLESEL ,CRect(10,10,300,200), this, 1); //--------- 2.same can be done with visual design mode as i said earlier. Both in list box & list control v have that check box. Kindly check in property dialog box 3.if u want i will help with a demo program

          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