picture near the name of the contact item

  • Thread starter Thread starter Tokamak
  • Start date Start date
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
 
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.
 
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
 
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.
 
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.
 
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.
 
Back
Top