S
SamSpade
Applications can retrieve an ITextDocument pointer from a rich edit control.
To do this, send an EM_GETOLEINTERFACE message to retrieve an IRichEditOle
object. Then, call the object's QueryInterface method to retrieve an
ITextDocument pointer.
How to do that?? I tried:
Dim oREO As Object
Dim mIDocument As tom.ITextDocument
SendMessage(Handle, EM_GETOLEINTERFACE, 0, oREO)
mIDocument = CType(oREO, tom.ITextDocument)
But this produces a "Cast Not Valid" message
Anyone have any insight as to how to make VB call QueryInterface??
Thanks in advance
To do this, send an EM_GETOLEINTERFACE message to retrieve an IRichEditOle
object. Then, call the object's QueryInterface method to retrieve an
ITextDocument pointer.
How to do that?? I tried:
Dim oREO As Object
Dim mIDocument As tom.ITextDocument
SendMessage(Handle, EM_GETOLEINTERFACE, 0, oREO)
mIDocument = CType(oREO, tom.ITextDocument)
But this produces a "Cast Not Valid" message
Anyone have any insight as to how to make VB call QueryInterface??
Thanks in advance