Home All Groups Group Topic Archive Search About

Need Help with Windows Messages

Author
4 Feb 2006 2:08 AM
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
br***@classic-soft.com

Author
4 Feb 2006 1:36 PM
Herfried K. Wagner [MVP]
"Brien King" <br***@classic-soft.com> schrieb:
> 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.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>