<snip>
RE:
The point is to discourage such useless posts... my little part to help with
the signal-to-noise ratio. And yes, I know, explaining that, in itself,
hurts the signal-to-noise ratio...
RE:>> broad, inappropriate cross-posting.
Gotcha - maybe just the winforms group would have been best. I did think
about it before doing it, though... seems like nobody knew the answer to my
earlier/similar question from yesterday - so figured I'd widen the scope a
bit and refocus the question. I didn't know that 3 groups would be
considered as "broad"... I'll take that into account in the future.
Back to the OP: After all this there is apparently there is no way to
determine when a user has stopped moving/dragging a mdi child form. Do you
have any ideas on that?
Actually John's solution wasn't entirely daft and I commend him for at
least trying to help. It won't work in this case because mouse events
are only raised in the client region, but his suggestion is used
commonly in many other situations so you really owe him an apology.
On topic, See if you can figure out what to do with the following:
private const int WM_NCMOUSEMOVE = 0xa0;
private const int WM_NCLBUTTONDOWN = 0xa1;
private const int WM_NCLBUTTONUP = 0xa2;
private const int HTCAPTION = 2;
private const int SC_MOVE = 0xF010;
private const int WM_SYSCOMMAND = 0x0112;
protected override void WndProc(ref System.Windows.Forms.Message
pMessage)
{
switch (pMessage.Msg)
{
case WM_NCMOUSEMOVE:
Console.WriteLine("WM_NCMOUSEMOVE");
break;
case WM_NCLBUTTONDOWN:
Console.WriteLine("WM_NCLBUTTONDOWN");
break;
case WM_NCLBUTTONUP:
Console.WriteLine("WM_NCLBUTTONUP");
break;
case HTCAPTION:
Console.WriteLine("HTCAPTION");
break;
case SC_MOVE:
Console.WriteLine("SC_MOVE");
break;
case WM_SYSCOMMAND:
Console.WriteLine("WM_SYSCOMMAND");
break;
}
base.WndProc(ref pMessage);
}