J
Jamie Ayer
My question is simple.
I would like to be able to use the WindowActivate Function in Word, which
passes me a Doc Item.
From here, how can I tell if that Doc is a WordMail item or not?
cheesy sample:
private void WordAddIn_WindowActivate(
Microsoft.Office.Interop.Word.Document Doc,
Microsoft.Office.Interop.Word.Window Wn )
{
if( Doc.Name.Trim() == "Untitled Message" )
{
if( this.loggedin )
CreateCustomToolbar( true );
else
CreateCustomToolbar(false);
}
}
Although what I have given here works, It does not work when you send a
reply that already has a subject because the name is no longer Untitled
Message. This is just as far as I have gotten so far. There must be a way
to tell if it's an active mail item?
I would like to be able to use the WindowActivate Function in Word, which
passes me a Doc Item.
From here, how can I tell if that Doc is a WordMail item or not?
cheesy sample:
private void WordAddIn_WindowActivate(
Microsoft.Office.Interop.Word.Document Doc,
Microsoft.Office.Interop.Word.Window Wn )
{
if( Doc.Name.Trim() == "Untitled Message" )
{
if( this.loggedin )
CreateCustomToolbar( true );
else
CreateCustomToolbar(false);
}
}
Although what I have given here works, It does not work when you send a
reply that already has a subject because the name is no longer Untitled
Message. This is just as far as I have gotten so far. There must be a way
to tell if it's an active mail item?