I am trying to aquire the handle of a trackbar contained in a 3rd party program. This is proving quite hard to identify due to the following:

  • There are multiple trackbars using the same classname (3 of them)
  • The trackbar doesnt have a title name
  • The trackbars ID number is the same as its handle so changes every time its run so its not static


As the trackbar has NO unique features how can i aquire its handle dynamically on runtime using my program. I cannot use "EnumChildWindows" or "FindWindowEx" API's as their are no unique features to allow me to identify the correct trackbar from the 3 that are available.

Any suggestions ? i always thought the ID number was supposed to be static on an application.