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. CListCtrl: Automatic Scroll- Down

CListCtrl: Automatic Scroll- Down

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

    I'm making a data logger using a CListCtrl. my problem is when a new row of data is inserted at the bottom of the list, the scroll does not scroll-down and the list display remain at the top. what I want to happen is to make the vertical scroll, to scroll-downwards automatically so that the latest data received can be easily seen during actual logging of data. Hope you can help me with my problem!:^) -- modified at 6:28 Friday 13th January, 2006

    R K 2 Replies Last reply
    0
    • R romuzu

      I'm making a data logger using a CListCtrl. my problem is when a new row of data is inserted at the bottom of the list, the scroll does not scroll-down and the list display remain at the top. what I want to happen is to make the vertical scroll, to scroll-downwards automatically so that the latest data received can be easily seen during actual logging of data. Hope you can help me with my problem!:^) -- modified at 6:28 Friday 13th January, 2006

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      When you add a new item to the CListCtrl, use the EnsureVisible() function to make sure that the new item is visible.

      romuzu wrote:

      Hope you can help me with my problem!

      Let me know if this helped. Regards, Rajesh R. Subramanian You have an apple and me too. We exchange those and We have an apple each. You have an idea and me too. We exchange those and We have two ideas each.

      1 Reply Last reply
      0
      • R romuzu

        I'm making a data logger using a CListCtrl. my problem is when a new row of data is inserted at the bottom of the list, the scroll does not scroll-down and the list display remain at the top. what I want to happen is to make the vertical scroll, to scroll-downwards automatically so that the latest data received can be easily seen during actual logging of data. Hope you can help me with my problem!:^) -- modified at 6:28 Friday 13th January, 2006

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

        I think you could send it a scroll-down message like: m_List.SendMessage(WM_VSCROLL,MAKEWPARAM(SB_BOTTOM,0),0); this is this.

        R 1 Reply Last reply
        0
        • K khan

          I think you could send it a scroll-down message like: m_List.SendMessage(WM_VSCROLL,MAKEWPARAM(SB_BOTTOM,0),0); this is this.

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          MSDN says when EnsureVisible is used, the item is shown at any cost, atleast partially. If needed, it is scrolled automatically too. Regards, Rajesh R. Subramanian You have an apple and me too. We exchange those and We have an apple each. You have an idea and me too. We exchange those and We have two ideas each.

          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