Registered messages in C#

B

Bob Moore

I have to interface with an unmanaged DLL. This involves passing a
registered message value into the DLL, and it posting the registered
message back to my app's window when an event occurs. But I've
searched the web all morning and can't find _anything_ on handling
registered messages in C# Winforms apps.

Can anyone point me in the right direction?

Bob Moore
http://bobmoore.mvps.org/
 
H

Herfried K. Wagner [MVP]

Bob --

Bob Moore said:
I have to interface with an unmanaged DLL. This involves passing a
registered message value into the DLL, and it posting the registered
message back to my app's window when an event occurs. But I've
searched the web all morning and can't find _anything_ on handling
registered messages in C# Winforms apps.

"registered message" = Win32 message registered by 'RegisterWindowMessage'?

You can override the form's 'WndProc' method and handle the message there.
In addition, take a look at the 'IMessageFilter' interface.
 

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