Hooyoo wrote:
In my application, I need to receive a windows message from another
window, and the other window is a MFC application using SendMessage to
send a custom windows message. So, in my c# application how can I
receive the message? (I know the message identifier in c#
application.)
Override the form's WndProc.
(You should be able to find code that will let you mark a method as
[Message(32123)] and then automatically invoke it when message 32123
comes in. For example, my Chapter15\WndProc project in the big zip at
www.midnightbeach.com/.net/source.code - though I'm sure you can find
a smaller, more targeted source for the functionality.)
--
..NET 2.0 for Delphi Programmers
www.midnightbeach.com/.net
What you need to know.