EditStreamCallback Assistance Request (C#)

  • Thread starter Thread starter David
  • Start date Start date
D

David

Can anyone help me with the code required to support the RichInk
EditStreamCallback in C#?

I can instantiate the RichInk control, even send WM_SETTEXT to it
successfully. However, I cannot seem to figure out how to create the
callback routines so that I can handle the EM_STREAMIN and EM_STREAMOUT
messages.

All I am trying to do is handle the display of RTF & PWI files. I really
don't even need the ability to draw on the control (i.e., ink). I realize
that there are commercial controls out there, but I am prohibited from using
them.

MS shows the code for C++
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnce30/htm
l/richink.asp), but I am unable to convert the code to C#.

Any comments, suggestions, or code samples would be greatly appreciated. -
Dave
 
Since using delegates as a callback is not possible in CF, you'd need to
create a native DLL in eVC++ that does what you want and use it from CF.
 
Back
Top