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. want help about scroll bar

want help about scroll bar

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

    hi, if i drag an objekt from my CScrollView window to the top of the area of a scroll bar, i want the view to scroll automatically in the same direction. Could you plz tell me how to do it? Thanks! withoutdruck

    B 1 Reply Last reply
    0
    • W withoutdruck

      hi, if i drag an objekt from my CScrollView window to the top of the area of a scroll bar, i want the view to scroll automatically in the same direction. Could you plz tell me how to do it? Thanks! withoutdruck

      B Offline
      B Offline
      Brian Shifrin
      wrote on last edited by
      #2

      Normaly you should set timer, when in drag mode and cursor x pixels from top; and then inside OnTimer handler scroll window. Brian

      W 1 Reply Last reply
      0
      • B Brian Shifrin

        Normaly you should set timer, when in drag mode and cursor x pixels from top; and then inside OnTimer handler scroll window. Brian

        W Offline
        W Offline
        withoutdruck
        wrote on last edited by
        #3

        Thanks Brian. But when I tried to identify the runtime class according to the cursor position, it told me always it was of the same CSrcollView class, although the cursor was just above the scroll bar.

        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