Lord Orwell
Mar 6th, 2001, 06:23 AM
Can anyone post or link to a demonstration of the EM_GETHANDLE and EM_SETHANDLE? I am trying to read the memory address of a text box's buffer, and can't seem to do it. I am aware that sethandle is supposed to use wparam to pass the memory handle.
This is the code i used:
MsgBox SendMessage(rtHwnd, EM_GETHANDLE, wp, lp)
Debug.Print wp; lp
where rthwnd is text1.hwnd.
the debug.print returns two zeros.
the msgbox shows a zero, indicating failure.
i have the declaration of em_gethandle like this:
Const EM_GETHANDLE = &HBD
This is the code i used:
MsgBox SendMessage(rtHwnd, EM_GETHANDLE, wp, lp)
Debug.Print wp; lp
where rthwnd is text1.hwnd.
the debug.print returns two zeros.
the msgbox shows a zero, indicating failure.
i have the declaration of em_gethandle like this:
Const EM_GETHANDLE = &HBD