picture near the name of the contact item

T

Tokamak

In Outlook 2003 it's possible to put a small picture near the name of the
contact item (the header of the contact), when I display the contact folder.
How can I do this programmatically? Must I use AddPicture(path) of
_ContactItem class?

Andrea
 
K

Ken Slovak - [MVP - Outlook]

Yes, that's it. The picture control isn't exposed to code and the picture is
actually stored as an attachment in the contact item.
 
T

Tokamak

Thank's for your replay...
I have installed a plugin named "plaxo" in my outlook 2003 that, when I'm
going in contacts page (not when I open a contact), display a small icon
image near the name of contacts. OutlookSpy reveals that attribute
HasPicture = false for these contacts. So, I think that AddPicture doesn't
is the real method that I need. I'm wrong?

Andrea
 
K

Ken Slovak - [MVP - Outlook]

Plaxo does something different. If you want to access the standard picture
element in an Outlook 2003 contact item you must use AddPicture,
RemovePicture and HasPicture. You could write an advanced hack using
Extended MAPI properties that would add the attachment, set a number of
undocumented properties, set the attachment paperclip to hidden and so on
and you would end up with the same thing as you already have with
AddPicture.
 
T

Tokamak

Ken Slovak - said:
Plaxo does something different.

It seems that Plaxo doesn't use CDO or Outlook Object Model, do you know
what type of technique has it used?
My objective was put a small icon near the contact name like the small
plaxo"card" icon near the contacts that has a plaxo account. But if it's
impossible easily make this feature, I already go on!
Bye, Andrea.
 
K

Ken Slovak - [MVP - Outlook]

I'm not sure but I suspect they are using Windows hooks to put an icon image
on the contact window and then intercepting Windows messages to see if
you've clicked on the icon. I won't use Plaxo so I couldn't be sure but that
would work.
 

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