Outlook 2007 uses a Word.dll and not a subclassing of MSWord.exe, it's
entirely owned by Outlook and not an instance of a Word window, even though
you use Word code to access things inside WordEditor (the Document object).
I forget offhand how long the struct is that's added to ConversationIndex
for each new message in a thread, I want to say 20 bytes but it's been a
while since I worked with that. But you can determine that empirically by
comparing the length of that property in one message and then the next in
the same thread. If you subtract that length from the new ConversationIndex
using a substring function that would give you the previous
ConversationIndex value.
Unfortunately you can't use ConversationIndex in a filter or restriction,
but you can use ConversationTopic in a filter or restriction to narrow the
list of possibilities down significantly.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Sanjay" wrote in message
oups.com...
Thanks for the quick reply Ken.
IOleWindow seems to work in OL2007 even though it is supposed to be
using word as email editor. I guess it must be implemented differently
from OL2003.
Is there a quick lookup I can do using the conversation index or do I
have to iterate through the contents of the folder to get to the
original message?