
Translating WM_MOUSEWHEEL messages
Hi Gurus
I am having a problem translating WM_MOUSEWHEEL messages in my application.
Windows by default sends this message to the window having the current
focus. I initiate my application and then iconize it to reside in the system
tray using the Shell_NotifyIcon() API. When I Left/Right/Double click the
icon in the tray, I can retrieve and handle the respective messages in my
app. So far so good.
Now, if I move the mouse wheel over the app icon in the tray, the
WM_MOUSEWHEEL messages are send to any other app that has the input focus.
Is there any way I can route this message to my app and handle them
there(since the mouse cursor is over the icon of my application)??
Second, if I click on my systray application icon, then any other running
application window with input focus will lose focus. Infact noone has the
focus. But still I am not able to capture the WM_MOUSEWHEEL message. Where
do these messages go if no application is having input focus??
In other words, I simply wanna handle any generated WM_MOUSEWHEEL messages
if the mouse pointer happens to be in the icon of my app sitting in the
system tray.
Thanks in advance.