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