Registered messages in C#

  • Thread starter Thread starter Bob Moore
  • Start date Start date
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/
 
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.
 
Back
Top