i got some trick to capture mouse touch title bar but the routine fire repeatedly when i place mouse on title bar. here is the routine
protected override void WndProc(ref Message m)
{
if (m.Msg == 0xA0) // WM_NCMOUSEMOVE
{
listBox1.Items.Add("mouse move on title bar");
}
else if (m.Msg == 0x2A2) // WM_NCMOUSELEAVE
{
listBox1.Items.Add("mouse leave from title bar");
}
base.WndProc(ref m);
}
can any one tell me any trick as a result WndProc fire only once when mouse touch the title bar instead of repeatedly firing. thanks