Commandbar of "New Mail Message Dialog"

  • Thread starter Thread starter Sandip Naskar
  • Start date Start date
S

Sandip Naskar

Hi All,

I want to get access of CommandBar of "New Mail Dialog" which opens when we
click New->Mail Message.
Actually, I have a requirement of placing a button on "New Mail Dialog" but
I couldn't get access of the commandbar where I can place the button.

Any help would be highly appreciated.

Thank you all in advance,

Regards,
Sandip
 
That's not a CommandBar, it's an internal control on the Standard toolbar
(CommandBar). You can get the New control but I'm not sure if you can get at
the contents of that control, which is a defined type but one not accessible
to code from the Office tlb.
 
Sandip said:
I want to get access of CommandBar of "New Mail Dialog" which opens
when we click New->Mail Message. Actually, I have a requirement of
placing a button on "New Mail Dialog" but I couldn't get access of
the commandbar where I can place the button.

Sounds rather like you want to access the new mail inspector's
CommandBars instead of the actual New Mail button.
You could hook into the Explorer's NewInspector event and then check
the item type and entryid of the underlying item. If the entry id is
still empty then you know it's a new item and you could add your button
to the command bars.

Hope this helps.

Oliver
 
Back
Top