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. Problem while horizontal scroling

Problem while horizontal scroling

Scheduled Pinned Locked Moved C / C++ / MFC
helpdata-structures
5 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
    Deepu Antony
    wrote on last edited by
    #1

    Hi all I am facing a problem while horizontal scrolling. My class is derived from CScrollView and i am displaying a graph in that class. While i am dragging the scrollbar and when it reached in the middle, it is returning to the initial position.But there is no problem with scroll to absolute position. Please help me Thanks and regards Deepu

    S 1 Reply Last reply
    0
    • D Deepu Antony

      Hi all I am facing a problem while horizontal scrolling. My class is derived from CScrollView and i am displaying a graph in that class. While i am dragging the scrollbar and when it reached in the middle, it is returning to the initial position.But there is no problem with scroll to absolute position. Please help me Thanks and regards Deepu

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      It's more than likely that your OnHScroll handler's wrong, resetting the scroll bar position after dragging. But it's difficult to tell when you've provided so little information.

      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

      D 2 Replies Last reply
      0
      • S Stuart Dootson

        It's more than likely that your OnHScroll handler's wrong, resetting the scroll bar position after dragging. But it's difficult to tell when you've provided so little information.

        Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

        D Offline
        D Offline
        Deepu Antony
        wrote on last edited by
        #3

        I have commented the code inside the OnHScroll.But still it is showing the same result.

        1 Reply Last reply
        0
        • S Stuart Dootson

          It's more than likely that your OnHScroll handler's wrong, resetting the scroll bar position after dragging. But it's difficult to tell when you've provided so little information.

          Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

          D Offline
          D Offline
          Deepu Antony
          wrote on last edited by
          #4

          Hi Stuart Thanks for the repling me. The nPos parameter of the OnHscrol can handle only 16 bit data. So when nPos is greater than 32677 it resets to 0.Thats why it was going to the initial posistion. Using GetScrollInfo function it can be made into 32 bit data.

          S 1 Reply Last reply
          0
          • D Deepu Antony

            Hi Stuart Thanks for the repling me. The nPos parameter of the OnHscrol can handle only 16 bit data. So when nPos is greater than 32677 it resets to 0.Thats why it was going to the initial posistion. Using GetScrollInfo function it can be made into 32 bit data.

            S Offline
            S Offline
            Stuart Dootson
            wrote on last edited by
            #5

            Thanks for your feedback!

            Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

            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