Results 1 to 4 of 4

Thread: lParam

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2001
    Posts
    7

    lParam

    I created my own message ans I subclassed WindProc. My problem is I dont know how to retrieve the string contained in the lparam.

    Code :

    dim variant_message as variant

    variant_message = "Hello world!"

    SendMessage hwndWin, WM_MYMESSAGE, 0, ByVal CStr(variant_Message)



    Public Function WindProc(ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long

    If wMsg = WM_MYMESSAGE Then
    if lParam <> 0 then
    What I have to do here ???????

    Exit Function
    End If

    WindProc = CallWindowProc(WndProcOld&, hwnd&, wMsg&, wParam&, lParam&)

    End Function

    Thanks in advance

  2. #2
    Megatron
    Guest
    I would recommend you use an atom. You can do this with the GlobalAddItem function, and you can retrieve it with GlobalGetAtomName.

  3. #3
    Megatron
    Guest
    See this link for a similar topic.

  4. #4

    Thread Starter
    New Member
    Join Date
    Oct 2001
    Posts
    7
    I tried to do many CopyMemory, but it's not very efficient !

    Thanks a lot !

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