Solved

How to determine programmatically if a slider is enabled?

Posted on 2002-07-11
5
217 Views
Last Modified: 2010-04-01
I need to determine if a slider within a separate application is enabled or disabled programmatically.
Same thing with a progress bar.
0
Comment
Question by:petlev
5 Comments
 
LVL 30

Expert Comment

by:Axter
ID: 7147150
Do you have access to the other application's window handle?
0
 

Author Comment

by:petlev
ID: 7147628
Yes I can get a handle.
0
 
LVL 22

Expert Comment

by:ambience
ID: 7148177
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
 
LVL 22

Accepted Solution

by:
ambience earned 200 total points
ID: 7148184
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
 
LVL 49

Expert Comment

by:DanRollins
ID: 7148362
And when you have the handle of the slider, use the IsWindowEnabled() API.
-- Dan
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now