Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 240
  • Last Modified:

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.
0
petlev
Asked:
petlev
1 Solution
 
AxterCommented:
Do you have access to the other application's window handle?
0
 
petlevAuthor Commented:
Yes I can get a handle.
0
 
ambienceCommented:
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.
0
 
ambienceCommented:
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.
0
 
DanRollinsCommented:
And when you have the handle of the slider, use the IsWindowEnabled() API.
-- Dan
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now