Windows Messages

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
 
W

Wiktor Zychla

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top