Property Page Title

T

TC

I've written an Outlook Add-In in VC++/ATL (VS .Net 2003). When adding the
property page I want pass in an instance of the PropertyPage object instead
of the ProgID. The problem with this approach is that Outlook ignores the
PropertyPages.Add method's Title parameter. I've added a Caption property
(dispid is DISPID_CAPTION) to my object's interface and the ATL property map
(I've tried using PROP_ENTRY and PROP_ENTRY_EX) but it's not working. If I
set a breakpoint on the property map it's never called. Has anyone else done
this? Any suggestions would be appreciated.

TC
 
D

Dmitry Streblechenko

AFAIK this is a known problem. The only workaround is to pass the prog id
instead of a live object.
Why can't you pass a prog id?

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

TC

Dimtry,

Thanks. That's what I thought but I wasn't able to find any documentation on
the problem. (I know, there are a lot of undocumented Outlook bugs.) I tried
retrieveing the PropertyPage after adding it but that fails too.

I can pass the ProgID but it would be more efficient to pass in an instance
of the PropertyPage. I wanted to initialize it with the component that reads
and writes the configuration settings instead of creating a new instance.

Thanks,

TC
 
D

Dmitry Streblechenko

yep, passing an already inialized instance of a propety page would be more
efficient. But we have to use what we can...
Since you can implement both the addin and the property page in the same
dll, ol' good global variables is the way to go...

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top