how to insert text in inspector's editor window?

  • Thread starter Thread starter Chen Bin
  • Start date Start date
C

Chen Bin

I am developing an addin for outlook2000 with VC/ATL.
Now I want to insert (NOT append) the text into the mailitem's body.
The problem is that I can not find Inspector.Selection or MailItem.Selection
or MailEditor.Selection interface.

I searched internet and got no idea.

if I can get the email editor window's handle, I can also use clipboard api
to insert
text. But I do not know how to get the editor window's handle!

Can anyon help me?
Thanks in advance.

redguard
 
Plain text editor: no documented way of doing that, but you can get the
handle of the inspector (QI Inspector for IOleWindow, call
IOleWindow::GetWindow), then find the child editor control.
HTML: Inspector.HTMLEditor.Selection.createRange.text
Word: Inspector.WordEditor.Application.Selection.Text

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top