How to read Windows Message
-
Hi all, I have a program written in Delphi that broadcats a window message. I have manage to read this message using Delphi code using the RegisterWindowMessage function, Delphi's TApplicationEvents component OnMessage function with great succes. Now I want to read this same message using my beloved Visual C++ code. Where do I start? Thanks
-
Hi all, I have a program written in Delphi that broadcats a window message. I have manage to read this message using Delphi code using the RegisterWindowMessage function, Delphi's TApplicationEvents component OnMessage function with great succes. Now I want to read this same message using my beloved Visual C++ code. Where do I start? Thanks
louis wrote: Now I want to read this same message using my beloved Visual C++ code. Just provide a message handler for the message that is being broadcast. Put the handler in between
BEGIN_MESSAGE_MAP()
andEND_MESSAGE_MAP()
.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
-
louis wrote: Now I want to read this same message using my beloved Visual C++ code. Just provide a message handler for the message that is being broadcast. Put the handler in between
BEGIN_MESSAGE_MAP()
andEND_MESSAGE_MAP()
.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
-
Thanks, I have done so. That part works. I am still not able to update my listview with the new data. The program gives an application error. One more question. How do I read the handle of the application. Thanks again. Cheers
louis wrote: I am still not able to update my listview with the new data. What does the code look like that is doing the updating? louis wrote: The program gives an application error. And that error would be?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen