Windows Messages

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.

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
 
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.
 
Back
Top