WndProc如何获得某个XX的消息。
比如 RichTextBox 的消息。
我用以下代码没办法获得RichTextBox 的消息,只能获得窗口的消息。没办法获得窗口内部件的消息。
protected override void WndProc(ref Message m) {
System.String MText = "";
MText += " m.Msg:" + m.Msg.ToString() + " ";
MText += " m.HWnd:" + m.HWnd.ToString() + " ";
MText += " m.LParam:" + m.LParam.ToString() + " ";
MText += " m.WParam:" + m.WParam.ToString() + " ";
MText += " m.Result:" + m.Result.ToString() + " ";
Console.WriteLine(MText);
base.WndProc(ref m);
}