How do I determine whether the scroll button is pressed or depressed and if so, depress it ! - page 6
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
If this is the function, I still need the inside of it...
// 3.2.1. The function returns the auto-scrolling state of the specified graph. If successful, the function returns TRUE, otherwise it returns FALSE.
bool ServiceGetAutoScroll(int hwndChart); // The system descriptor of the chart window from which the auto-scroll state is returned.
You won't be satisfied with the internals of the function. And I would have too much to copy from different places. I have a class for working with MT4 windows. Everything is done centrally there. Too much has to be copied.
This function, for example:
Will it suit you? There is a whole class behind the GetAutoScroll() method.
Use what has already been done so that you don't waste your time. Otherwise, you may start programming by developing your own processor, or better yet, by mining and processing silicon.
Anyway, the first version of the script seems to work somehow !
Of course, there are simpler and more reliable versions, but I never got them ...
The script is attached ...
If you want to show it, show the code. If you don't want to show the code, keep quiet.
So it's all been discussed and shown ...
There is nothing hidden in this code, please:
Weaknesses in the code:
1. there is no linkage to the graph. This code will retrieve the button position of any active chart.
2. This code does not provide for autonomous panel position. That is, this code will not always work.
3. This code works only with the Russian localization.
4. It is interesting, but not very gentlemanly :-)).
It is scary to look at WinAPI code in MLQ4 after C++.
I'm sorry, I just made it up with what I could think of, I'm a beginner, not an ACC like you!
That's why I asked for the code to be posted so that there would not be these 3 disadvantages !
I don't understand about the colour (4th point) !?
About the colour (4th point) I don't get it !?
What's wrong with TB_ISBUTTONCHECKED ?
I'm sorry, I just made it up with what I could think of, I'm a beginner, not an ACC like you!
That's why I asked for the code to be posted so that there would not be these 3 disadvantages !
I don't understand about the colour (4th item)!
It's a technical culture like that. It is not cultural to unscrew bolts and nuts with pliers. There is a spanner for that.
How to do without these 3 disadvantages, has already written several times.
I'm shocked about the colour, too.
Why is TB_ISBUTTONCHECKED so annoying?
You can't say: like or dislike it if I haven't seen it, don't know and haven't tried it !
That's why I'm asking for help and once again asking for a code example with TB_ISBUTTONCHECKED on mql4 ...