哪位高手能解釋下這段代碼什么意思??winform的
public event EventHandler Completed
protected override void WndProc(ref Message m)??????? {??????????? if (m.Msg == 0x210)??????????? {??????????????? if ((!base.DesignMode && (m.WParam.ToInt32() == 2)) && (this.Completed!= null))??????????????? {??????????????????? this.Completed(this, new EventArgs());??????????????? }??????????????? this.DefWndProc(ref m);??????????? }??????????? else??????????? {??????????????? base.WndProc(ref m);??????????? }??????? }
還有第二個問題,如果需要在注冊Completed事件時。驗證如果注冊的是同個委托方法.不添加進去..如果不是同個委托方法。。就加入。應該在Completed的 add remove中怎樣寫驗證代碼???????
添加回答
舉報
0/150
提交
取消