How to determine programmatically if a slider is enabled?

I need to determine if a slider within a separate application is enabled or disabled programmatically.
Same thing with a progress bar.
Who is Participating?
ambienceConnect With a Mentor Commented:
I suggest you use spy++ and determine the window hierarchy for that application, that may give you some hint about where you are going to find that slider.

This way you can use FindWindowEx to get to the slider, otherwise using EnumChildWindows might be a little extra work.
Do you have access to the other application's window handle?
petlevAuthor Commented:
Yes I can get a handle.
you mean handle to other applications main window, right ? If yes then there seems to be a need of enumerating all the child windows of main window and then perhaps children of children until you get to the slider window.

once you have found hWndslider you can use IsWindowEnabled(hWndSlider) to determine if it is enabled or not.
And when you have the handle of the slider, use the IsWindowEnabled() API.
-- Dan
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.