protected override void WndProc(ref Message m)
  {
   base.WndProc (ref m);
   if(m.Msg == 0x84)
   {
    if ((IntPtr)2 == m.Result)
    {
     m.Result = (IntPtr)1;
    }
   }
  }

//类似的
  protected override void WndProc( ref Message m )
  {       
   switch(m.Msg)    
   {      
    case 0x84:        
    {
         ...
    }                 
}



   HWnd  获取或设置消息的窗口句柄。 
   LParam  获取或设置消息的 LParam 字段。 
   Msg  获取或设置消息的 ID 号。 
   Result  指定为响应消息处理而向 Windows 返回的值。 
   WParam  获取或设置消息的 WParam 字段。 

Posted on 2007-07-17 17:20  旅途  阅读(424)  评论(0)    收藏  举报