I have a window that is a top-most (WS_EX_TOPMOST) window. However I do not want it to capture mouse events. WS_DISABLE will prevent mouse events from going to the window, however it will still capture the messages.
Specifically I want mouse events to completely ignore this window as if it didn't exist, so they are sent to whatever window is next lowest in the z-order.
Dan East
I am not sure that's even possible. What is this window you don't want to receive mouse events? Is it visible? Covers the fullscreen?
Have you tried accepting mouve events and then sending them explicitely to the window under it?
My PSX driver allows mouse support. When the controller is in analog mode I display a mouse pointer and send mouse events based on that input.
When I push mouse events they are going to my mouse pointer's window, since it is top-most.
Normally you would process WM_NCHITTEST events and return HTTRANSPARENT, however Pocket PC doesn't support that event.
Dan East
If the mouse window is just there to display the mouse have you considered that when a real mouse is plugged in you get the messages but no pointer. Okay based on a research sample of just me.
So developers need to make thier own pointer anyway.