From: Tim Ward on
Using SetSelection() I can get a CSliderCtrl to display a highlighted
selection ... but so what? What use is it other than to look pretty?

Which of the following is possible, and how do I do them?

(1) Prevent the user from moving the thumb outside the highlighted range.
(This seems to be what the documentation suggests that SetSelection does,
but in fact it doesn't, the thumb can be moved outside the selection.)

(2) Have the user change the selection. (The documentation seems to suggest
this is possible, but I can find no combination of keystrokes or mouse
actions that will do it.)

--
Tim Ward
Brett Ward Limited - www.brettward.co.uk


From: Tim Ward on
"Tim Ward" <tw2(a)ipaccess.com> wrote in message
news:37jq6jF5ctfloU1(a)individual.net...
> Using SetSelection() I can get a CSliderCtrl to display a highlighted
> selection ... but so what? What use is it other than to look pretty?
>
> Which of the following is possible, and how do I do them?

.... plus, it would be nice to be able to get some sort of notification when
the user moves the thumb, too.

Visual Studio.NET 2002 only offers me NM_CUSTOMDRAW, NM_OUTOFMEMORY,
NM_RELEASEDCAPTURE and NM_THEMECHANGED - I don't seem to see anything which
says "the slider position has changed"???

--
Tim Ward
Brett Ward Limited - www.brettward.co.uk


From: Tim Ward on
Plus, how do you get tick marks drawn under the slider?

TBS_TOP draws them above it OK, but if I remove TBS_TOP then (whether or not
I add TBS_BOTTOM, which being zero obviously doesn't make any difference) it
doesn't draw the tick marks.

--
Tim Ward
Brett Ward Limited - www.brettward.co.uk


From: Joseph M. Newcomer on
Look at UDN_ notifications, and WM_HSCROLL and WM_VSCROLL.
joe
On Thu, 17 Feb 2005 15:11:28 -0000, "Tim Ward" <tw2(a)ipaccess.com> wrote:

>"Tim Ward" <tw2(a)ipaccess.com> wrote in message
>news:37jq6jF5ctfloU1(a)individual.net...
>> Using SetSelection() I can get a CSliderCtrl to display a highlighted
>> selection ... but so what? What use is it other than to look pretty?
>>
>> Which of the following is possible, and how do I do them?
>
>... plus, it would be nice to be able to get some sort of notification when
>the user moves the thumb, too.
>
>Visual Studio.NET 2002 only offers me NM_CUSTOMDRAW, NM_OUTOFMEMORY,
>NM_RELEASEDCAPTURE and NM_THEMECHANGED - I don't seem to see anything which
>says "the slider position has changed"???

Joseph M. Newcomer [MVP]
email: newcomer(a)flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm