08-11-2007, 05:43 PM
3 ways:
1. If in a dialog, use WM_MOUSEWHEEL message. It comes to the focused control, so you would need to subclass controls.
2. Use a function that has wheel trigger. It could set a global variable, and the macro could wait for the variable.
3. Use low level mouse hook. Again, the communication between the hook function and the macro could be through a global variable.
1. If in a dialog, use WM_MOUSEWHEEL message. It comes to the focused control, so you would need to subclass controls.
2. Use a function that has wheel trigger. It could set a global variable, and the macro could wait for the variable.
3. Use low level mouse hook. Again, the communication between the hook function and the macro could be through a global variable.