Correction, the message I need to catch is WM_MOUSEMOVE, I have tried the
code (posted below) with WM_MOUSEMOVE, but still not catching it.
> Hi C# Experts:
>
[quoted text clipped - 13 lines]
> base.WndProc(ref m);
> }
Hi Polaris,
When you create an MDI window, the MDI canvas is actually a separate control
and not the non client area of the MDI parent. This canvas control traps the
mouse events and I'm not sure how, or if it is possible, to get these mouse
events.

Signature
Happy Coding!
Morten Wennevik [C# MVP]
> Hi C# Experts:
>
[quoted text clipped - 12 lines]
> base.WndProc(ref m);
> }
Polaris - 30 Apr 2008 04:48 GMT
Thanks Morten.
I think there should a way to do it because I tried the Spy++, it can detect
mouse actions (WM_MOUSEMOVE, WM_LBUTTONDOWN...) accurately...
> Hi Polaris,
>
[quoted text clipped - 24 lines]
>> base.WndProc(ref m);
>> }