Hi,
I'm wondering if there are any equivalents of the Windows Messages (like
WM_USER) and the concept of message maps in .NET ?
I need to handle user defined messages.
To port from MFC to .NET it requires some infrastructure to handle this. It
should be a pure .NET solution, not some P/Invoke thing.
Regards,
Christoffer Sørensen
Wiktor Zychla - 02 Sep 2004 07:56 GMT
> I'm wondering if there are any equivalents of the Windows Messages (like
> WM_USER) and the concept of message maps in .NET ?
[quoted text clipped - 3 lines]
> To port from MFC to .NET it requires some infrastructure to handle this. It
> should be a pure .NET solution, not some P/Invoke thing.
in a form code you should override the WndProc method
...
protected override void WndProc(ref Message m)
{
// handle any message here
...
// default semantics
base.WndProc (ref m);
}
Wiktor Zychla
Christoffer Sørensen - 02 Sep 2004 11:47 GMT
> in a form code you should override the WndProc method
<snip>
Thanks a lot!
Regards,
Christoffer
nicomp - 12 Mar 2006 23:06 GMT
Do you know how to receive messages from .Net IDE windows? We need to see
messages sent to / from the output window, editor window. etc.
> > in a form code you should override the WndProc method
>
[quoted text clipped - 5 lines]
>
> Christoffer