Reading a TrackBar's position.

This is a discussion on Reading a TrackBar's position. within the Windows Programming forums, part of the Platform Specific Boards category; I have this Trackbar with the handle of 'hTrackVolume' and with a control ID of 104. I have set up ...

  1. #1
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342

    Question Reading a TrackBar's position.

    I have this Trackbar with the handle of 'hTrackVolume' and with a control ID of 104. I have set up all of it's parameters. But it's useless if I don't know how to detect it's position. How do I do that?

    Thanks in advance, August.

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Trackbar notifications are sent to the trackbar's parent as WM_HSCROLL and WM_VSCROLL messages depending on the orientation of the trackbar. You can send a TBM_GETPOS message to the trackbar to get its position.

    For more details refer to the Trackbar Notification Messages section on this msdn page.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    I have it working now, thanks guys.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 05-08-2009, 04:25 AM
  2. how to combine these working parts??
    By transgalactic2 in forum C Programming
    Replies: 0
    Last Post: 02-01-2009, 07:19 AM
  3. Replies: 6
    Last Post: 04-28-2006, 12:06 PM
  4. reading in one character at a time
    By isotope1 in forum C++ Programming
    Replies: 2
    Last Post: 01-26-2006, 11:55 AM
  5. Reading a TrackBar's position.
    By Queatrix in forum C++ Programming
    Replies: 6
    Last Post: 08-24-2005, 03:00 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21