EM_STREAMOUT

  • Thread starter Thread starter mork
  • Start date Start date
M

mork

I'm having a tought time wrapping ym head around implementing EM_STRAMOUT

It requires a callback function which is repeadely called and passed a
buffer which is a portion of the richedit's complete contents.

However, the message itself is supposed to send a structure (which
contains the callback function).

I'm not sure what it is exactly that I would be wanting to pass as the
lParam parameter in this scenario. I've seen some documentation
regarding setting up Callback functions and have had success testing it
EnumWindows - however, they differ in that EnumWindow parameter only
requires a pointer to the callback function itself.

Any advice would be greatly appreciated. Thank you for your help in
advance.

http://msdn.microsoft.com/library/e...olReference/RichEditMessages/EM_STREAMOUT.asp
 
Try this:

delegate uint EditStreamCallback(IntPtr dwCookie, IntPtr pbBuff, int
cb, out int pcb);

struct EDITSTREAM
{
public IntPtr dwCookie;
public uint dwError;
public EditStreamCallback pfnCallback;
}

[DllImport("user32.dll", CharSet=CharSet.Auto)]
static extern IntPtr SendMessage(HandleRef hwnd, uint msg, uint
wParam, ref EDITSTREAM lParam);



Mattias
 
Back
Top