Need Help with Windows Messages

B

Brien King

I would like to allow other applications to send my application (via Windows
Messages) a string and based on the content of that string I want to return
an integer response.

I figured I would use WM_USER and intercept that in the WndProc sub of the
Form.

However, there are two things I'm not sure how to do.

1) How do I get the text value from the lParam?
2) How do I return a response code since it's a Sub?


Any help would be greatly appreciated!


Brien King
(e-mail address removed)
 
H

Herfried K. Wagner [MVP]

Brien King said:
I figured I would use WM_USER and intercept that in the WndProc sub of the
Form.

However, there are two things I'm not sure how to do.

1) How do I get the text value from the lParam?
2) How do I return a response code since it's a Sub?


Check out the method's 'm' parameter. This parameter provides properties to
get 'lParam' and set a return value.
 

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