Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / May 2004

Tip: Looking for answers? Try searching our database.

Adding a CommandBar to an Outlook 97 inspector

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nik The Greek - 19 May 2004 18:23 GMT
Is it possible to add a new commandbar to an inspector _in Oultook
97_? I'm tyring it in VB and Delphi and getting "error 800040005",
which is 'access denied' IIRC, when I call "CommandBars.Add".
Dmitry Streblechenko \(MVP\) - 21 May 2004 05:05 GMT
It works just fine for me. What is your code and when is it called? Note
that in Outlook 97/98 you can create new toolbars and /or buttons, but you
cannot sink click events from them. That functionality was not implemented
until Outlook 2000.

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

> Is it possible to add a new commandbar to an inspector _in Oultook
> 97_? I'm tyring it in VB and Delphi and getting "error 800040005",
> which is 'access denied' IIRC, when I call "CommandBars.Add".
Nik The Greek - 24 May 2004 16:14 GMT
Thanks for your help.
I'm trying it in VB, simply by calling:
oapp.ActiveInspector.CommandBars.Add
with all sort of parameter values, I think I tried every combination.
I'm doing this from VB after I manually open an inspector on my
Outlook 97, but I've also tried it in Delphi.
I always get 80040005. Are you 100% sure that it's possible to add new
toolbars to _Inspectors_, not Explorers...? Can you give me a VB line
that you know is supposed to work, like:

olApp.ActiveInspector.CommandBars.Add("test", ?, ?, ?)

That would be great.
And btw, if I can't sink events from the toolbar, what would you
suggest I do? Hooking the mouse click messages of Outlook's GUI thread
comes to mind as a workaround, but that's pretty nasty.

Thanks again.

> It works just fine for me. What is your code and when is it called? Note
> that in Outlook 97/98 you can create new toolbars and /or buttons, but you
[quoted text clipped - 9 lines]
> > 97_? I'm tyring it in VB and Delphi and getting "error 800040005",
> > which is 'access denied' IIRC, when I call "CommandBars.Add".
Dmitry Streblechenko \(MVP\) - 24 May 2004 23:35 GMT
Oh, sorry, I didn't realize you do it for an inspector, not an explorer.
Inspector never worked for me either, but explorers do work fine -
OutlookSpy (url in my sig.) adds a toolbar to an explorer in all version of
Outlook using OOM.

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

> Thanks for your help.
> I'm trying it in VB, simply by calling:
[quoted text clipped - 28 lines]
> > > 97_? I'm tyring it in VB and Delphi and getting "error 800040005",
> > > which is 'access denied' IIRC, when I call "CommandBars.Add".
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.