I try to use SetWindowsHookEx with WH_MOUSE to capture mouse move events. It work everywhere but over HTCAPTION areas (at least in my code sample ). I can't find any reference to this behavior and I tried to windbg into another application that do the same to monitor mouse moves. The method used is WH_MOUSE as well, and the events are generated even when the mouse is over caption areas. Hence, it should work except it doesn't.
Any ideas ?
Edit : I'm using this to hook in all processes. I built a separate dll that forward messages to some internal window in my application. I use dwThreadId = 0. I don't get mouse click in the caption area either.