Need Help with Windows Messages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brien King

    #1

    Need Help with Windows Messages

    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
    brien@classic-soft.com


  • Herfried K. Wagner [MVP]

    #2
    Re: Need Help with Windows Messages

    "Brien King" <brien@classi c-soft.com> schrieb:[color=blue]
    > 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?[/color]


    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/>

    Comment

    Working...