Suppose I need to capture the listView message and on the form have three listView, the variable m.Msg distinguish the listView1, listView2, listView3, ... and when run output message m.Msg variable in the attachment: http://www.mediafire.com/file/weab5ppsb355kc1/out_WndProc.doc
protected override void WndProc(ref Message m)
{
Debug.Print("out if: " + m.Msg);
if (m.Msg == WM_NOFITY)
{
Debug.Print("in if: " + m.Msg);
}
}