What do the pros have to say: How to get mouse scroll values in MQL? [repost from the fifth forum]. - page 2

 
Scriptong:


If list (CListCtrl) is its own object, what's the problem? It is the list that receives events from the mouse, not the Meta Trader window.

Or are we talking about a list based on MT4 graphical objects?


Igor, you're trying to exaggerate to the wrong task. And to think up some specifics. You don't have to.

The question was clear and unambiguous - how to get mouse scroll values in MQL and by means of only wind DLL or API. That's all.

 
At least show me what you've got, or else you won't have a solution.)
 
sanyooooook:
At least show me what you've got, or else you won't have a solution.)

Faq will wake up and tell you.
 
tara:

Faq will wake up and tell you.

There is nothing to tell, if a solution had been found, this topic would not appear here or on the Fifth.
 

Let's move on, then, if you don't mind.

The task is just to catch the interrupt code?

 
FAQ:

So there is nothing to tell, if a solution had been found, this topic would not have appeared here or on the Fifth.

There is already a solution.
 
If you have one, share it, if you don't want to share it, pass it by.
 
tara:

Let's move on, then, if you don't mind.

The task is just to catch the interrupt code?


We'd love to continue.

The task is as follows:

There is a list drawn by graphical objects. It looks like the usual one in the Windows(CListView, etc.)

You can move the slider and click the scroll buttons. But how often do you use it? 100% sure they spin the mouse wheel to scroll the list.

That's the task - to teach MQL to understand that they spin the wheel. So that the list drawn in MT is also scrolled.

-------------

I haven't really thought about interruptions. Is there any way to get it out with vin dll ?

tara:

There is already a solution.
Great. Give me an idea. You can put it in a private message.
 
tara:


If there is no problem - please specify how to determine the FACT of shifting the wheel on the mouse. When a pointer of this mouse is in an MT4 window. It is very interesting :)

Of course, it's a Windows tool.

By Windows means (meaning its own DLL):

1. Subclass the required chart window (http://msdn.microsoft.com/en-us/library/windows/desktop/ms644898(v=vs.85).aspx with GWLP_WNDPROC).

2. Catch WM_MOUSEWHEEL (http://msdn.microsoft.com/en-us/library/windows/desktop/ms645617(v=vs.85).aspx)

3. At the end, don't forget to return a pointer to the default message handling procedure.

 
Scriptong:

By Windows means (meaning its own DLL):

1. Subclass the required chart window (http://msdn.microsoft.com/en-us/library/windows/desktop/ms644898(v=vs.85).aspx c GWLP_WNDPROC).

2. Catch WM_MOUSEWHEEL (http://msdn.microsoft.com/en-us/library/windows/desktop/ms645617(v=vs.85).aspx)

3. At the end, don't forget to return a pointer to the default message handling procedure.


No, not ....

VINAPI only, with external (own) DLL, it's understandable, no questions here.

... but we are not looking for easy ways :)))

Reason: