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. SliderCtrl

SliderCtrl

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

    Hi, i have a Slider ctrl and im calling SetRange(1,3,TRUE) and when im trying to drag the slider from one position to the other ..ie OnHScroll(UINT nSBCode,UINT nPos,CScrollBar *pScrollBar) is called... and in this if the nsBCode is SB_PAGEDOWN im always getting the nPos value is 0 eventhough the position of the slider is changed...and when the nsBCode is SB_THUMBPOSITION evrything works fine... Please help me regarding the same...

    N 1 Reply Last reply
    0
    • P p_1960

      Hi, i have a Slider ctrl and im calling SetRange(1,3,TRUE) and when im trying to drag the slider from one position to the other ..ie OnHScroll(UINT nSBCode,UINT nPos,CScrollBar *pScrollBar) is called... and in this if the nsBCode is SB_PAGEDOWN im always getting the nPos value is 0 eventhough the position of the slider is changed...and when the nsBCode is SB_THUMBPOSITION evrything works fine... Please help me regarding the same...

      N Offline
      N Offline
      Naveen
      wrote on last edited by
      #2

      p_1960 wrote:

      and in this if the nsBCode is SB_PAGEDOWN im always getting the nPos value is 0 eventhough the position of the slider is changed

      MSDN says

      For the TB_THUMBPOSITION and TB_THUMBTRACK notifications, the high-order word of the wParam parameter specifies the position of the slider. For all other notifications, the high-order word is zero; send the TBM_GETPOS ( GetPos ) message to determine the slider position. The lParam parameter is the handle to the trackbar.

      nave [OpenedFileFinder] [My Blog]

      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