Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUnable to move slider position using mouse [modified] Pin
John50224-Jan-09 12:29
John50224-Jan-09 12:29 
AnswerRe: Unable to move slider position using mouse Pin
David Crow24-Jan-09 14:08
David Crow24-Jan-09 14:08 
GeneralRe: Unable to move slider position using mouse [modified] Pin
John50225-Jan-09 0:42
John50225-Jan-09 0:42 
AnswerRe: Unable to move slider position using mouse Pin
Mark Salsbery25-Jan-09 7:37
Mark Salsbery25-Jan-09 7:37 
GeneralRe: Unable to move slider position using mouse [modified] Pin
John50225-Jan-09 18:58
John50225-Jan-09 18:58 
GeneralRe: Unable to move slider position using mouse Pin
Mark Salsbery25-Jan-09 20:30
Mark Salsbery25-Jan-09 20:30 
GeneralRe: Unable to move slider position using mouse [modified] Pin
John50226-Jan-09 4:30
John50226-Jan-09 4:30 
GeneralRe: Unable to move slider position using mouse Pin
Mark Salsbery26-Jan-09 5:50
Mark Salsbery26-Jan-09 5:50 
venki502 wrote:
But i am not getting the exact mouse position in the code.


Correct. The control doesn't work that way. Like I mentioned previously - if you
want the slider position to move to the exact spot you click, then you'd have to
customize the control, perhaps by subclassing the control, intercepting the mouse click
message(s), somehow calculate how the position clicked relates to the new position, and
call SetPos() to set that new position.

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Unable to move slider position using mouse [modified] Pin
John50226-Jan-09 6:05
John50226-Jan-09 6:05 
GeneralRe: Unable to move slider position using mouse Pin
Mark Salsbery26-Jan-09 6:23
Mark Salsbery26-Jan-09 6:23 
GeneralRe: Unable to move slider position using mouse [modified] Pin
John50226-Jan-09 6:43
John50226-Jan-09 6:43 
GeneralRe: Unable to move slider position using mouse Pin
Mark Salsbery26-Jan-09 6:46
Mark Salsbery26-Jan-09 6:46 
GeneralRe: Unable to move slider position using mouse [modified] Pin
John50226-Jan-09 7:17
John50226-Jan-09 7:17 
GeneralRe: Unable to move slider position using mouse Pin
Mark Salsbery26-Jan-09 7:26
Mark Salsbery26-Jan-09 7:26 
GeneralRe: Unable to move slider position using mouse [modified] Pin
John50226-Jan-09 22:30
John50226-Jan-09 22:30 
GeneralRe: Unable to move slider position using mouse Pin
Mark Salsbery27-Jan-09 5:58
Mark Salsbery27-Jan-09 5:58 
QuestionTooltip problem Pin
madmax000124-Jan-09 8:30
madmax000124-Jan-09 8:30 
AnswerRe: Tooltip problem Pin
Hans Dietrich25-Jan-09 6:53
mentorHans Dietrich25-Jan-09 6:53 
GeneralRe: Tooltip problem Pin
madmax000125-Jan-09 9:07
madmax000125-Jan-09 9:07 
AnswerRe: Tooltip problem Pin
KarstenK26-Jan-09 3:20
mveKarstenK26-Jan-09 3:20 
GeneralRe: Tooltip problem Pin
madmax000126-Jan-09 6:11
madmax000126-Jan-09 6:11 
QuestionNeed help regarding the slider Pin
John50224-Jan-09 8:22
John50224-Jan-09 8:22 
QuestionRe: Need help regarding the slider Pin
David Crow24-Jan-09 14:09
David Crow24-Jan-09 14:09 
AnswerRe: Need help regarding the slider Pin
John50225-Jan-09 0:39
John50225-Jan-09 0:39 
GeneralRe: Need help regarding the slider Pin
Mark Salsbery25-Jan-09 7:38
Mark Salsbery25-Jan-09 7:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.