2
Answers

How to debug a WndProc function with multiple listview ?

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
  1. protected override void WndProc(ref Message m)  
  2.    {  
  3.         Debug.Print("out if: " + m.Msg);  
  4.         if (m.Msg == WM_NOFITY)  
  5.             {  
  6.                 Debug.Print("in if: " + m.Msg);  
  7.             }  
  8.   }  

Answers (2)