CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Posts
    3

    VC++ : Using WPARAM and LPARAM

    Hello,

    I donot know how to use the WPARAM and LPARAM parameters which can be sent while posting application messsage usually,
    the User defined messsage.

    Can i send the string information in those parameters.




  2. #2
    Join Date
    May 1999
    Posts
    10

    Re: VC++ : Using WPARAM and LPARAM

    you can't send the the entire string by LParam or
    WParam.

    LParam and WParam are 32 bit parameter, you can
    use LParam to send the address of the string and
    than you can get the entire string;

    example:

    char* string = "I love Programming";
    SendMessage(window.m_hwnd,WM_USERMESSAGE,0,&string);
    void OnUserMessage(....LPARAM lParam..)
    {
    char* s=(char*) lParam;
    ...
    }




    the beautiful story made me cry.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured