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. Auto Scroll Vertical to the last line

Auto Scroll Vertical to the last line

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

    i have the following problm:SDI appliction based on CRichEditView, in the output window the Vertical scrollbar does not scroll auomatically till the last line in the output. CRichEditView* ptrOutput; ptrOutput->SetScrollRange(....); ptrOutput->SetScrollPos(....); the thumb goes down and then back again to the top of the window. How can i solve this? Please help.

    _ 1 Reply Last reply
    0
    • S susanne1

      i have the following problm:SDI appliction based on CRichEditView, in the output window the Vertical scrollbar does not scroll auomatically till the last line in the output. CRichEditView* ptrOutput; ptrOutput->SetScrollRange(....); ptrOutput->SetScrollPos(....); the thumb goes down and then back again to the top of the window. How can i solve this? Please help.

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      Please try this - ptrOutput->GetRichEditCtrl().LineScroll(0x7FFFFFFF);

      «_Superman_» I love work. It gives me something to do between weekends.

      S 1 Reply Last reply
      0
      • _ _Superman_

        Please try this - ptrOutput->GetRichEditCtrl().LineScroll(0x7FFFFFFF);

        «_Superman_» I love work. It gives me something to do between weekends.

        S Offline
        S Offline
        susanne1
        wrote on last edited by
        #3

        Thanks for your help it works but the text in the outputput window is hidden till i click the vertical scroll bar?? please help to fix this problem.

        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