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. CtrlList - selectionchange

CtrlList - selectionchange

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

    Hi, I have a necessary small code in OnSelectionChange() for ListCtrl. The code is needy for tests row(s) in ListCtrl - switch on/off a few controls. These tests must be doing automatically after what all selected rows are selected. If I selected 20 rows in ListCtrl then method OnSelectionChange() is running 20 times. I don't need this. Does exists some way so I can call OnSelectionChange() only once? Is possible handled procedure for selection of rows? When the rows' marking is done, which function is called? - maybe I could puts tests in there... thx for help...

    S 1 Reply Last reply
    0
    • J jakry

      Hi, I have a necessary small code in OnSelectionChange() for ListCtrl. The code is needy for tests row(s) in ListCtrl - switch on/off a few controls. These tests must be doing automatically after what all selected rows are selected. If I selected 20 rows in ListCtrl then method OnSelectionChange() is running 20 times. I don't need this. Does exists some way so I can call OnSelectionChange() only once? Is possible handled procedure for selection of rows? When the rows' marking is done, which function is called? - maybe I could puts tests in there... thx for help...

      S Offline
      S Offline
      sudhir_Kumar
      wrote on last edited by
      #2

      OnSelectionChange() will be get called but you can return without doing anything if row selection count in more than 1.

      -@SuDhIrKuMaR@-

      J 1 Reply Last reply
      0
      • S sudhir_Kumar

        OnSelectionChange() will be get called but you can return without doing anything if row selection count in more than 1.

        -@SuDhIrKuMaR@-

        J Offline
        J Offline
        jakry
        wrote on last edited by
        #3

        However, I need checks selected row(s) and depending on selected row(s) enable/disable a couple buttons at form. Does exits some function that is calling after markings row(s)? these row(s) user selected… for example: ListCtrl has many rows. User marks 15 rows (by mouse/keyboard) and I need checks these rows one by one. After this, I enable/disable a few of buttons depending on selected rows…

        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