S
SamSpade
I'm trying to use ITextDocument and got this far.
I don't know what to do about defining ITextDocument
Library.WinApi.SendMessage(RichTextBox1.Handle,
Library.Rtf.EM_GETOLEINTERFACE, IntPtr.Zero, mIRichEditOleI)
Dim td As ITextDocument = DirectCast(mIRichEditOleI, ITextDocument)
Can any one help?
PS
In my C# library:
[DllImport("user32.dll")]
public static extern IntPtr SendMessage(IntPtr hwnd, int Msg, IntPtr wParam,
[MarshalAs(UnmanagedType.IUnknown)] out object lParam);
const int EM_GETOLEINTERFACE = 0x400 + 60;
I don't know what to do about defining ITextDocument
Library.WinApi.SendMessage(RichTextBox1.Handle,
Library.Rtf.EM_GETOLEINTERFACE, IntPtr.Zero, mIRichEditOleI)
Dim td As ITextDocument = DirectCast(mIRichEditOleI, ITextDocument)
Can any one help?
PS
In my C# library:
[DllImport("user32.dll")]
public static extern IntPtr SendMessage(IntPtr hwnd, int Msg, IntPtr wParam,
[MarshalAs(UnmanagedType.IUnknown)] out object lParam);
const int EM_GETOLEINTERFACE = 0x400 + 60;