Extracting data from SUPERGRID


M

Matt Fletcher

Is it possible to extract information from the Outlook SUPERGRID
control?

I am trying to write code to subclass a SUPERGRID so that I can
process some (but not all mails) before they are opened by Outlook
(i.e. before the NewInspector event) - to do this I want to determine
subject, sender etc. This is relatively straight forward in Outlook
Express as it uses a standard list view, but seems impossible in
Outlook.
 
Ad

Advertisements

D

Dmitry Streblechenko

You can simply track the Explorer.SelectionChange event, set up event sinks
on the selected messages, then track MailItem.Open event, which has a Cancel
parameter (by ref) that you can set to true.

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

Dmitry Streblechenko

Please reply to the newsgroup only.
AFAIK there is really no workaround unless you switch from Outlook Object
Model to Extended MAPI/CDO 1.21/Redemption which do not care about encrypted
messages at all.

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


Dmitry,

thanks for this advice - it has helped me progress further.

I have however come across a further problem: when an encrypted message is
selected, calling _Explorer::GetSelection causes the Protected Storage
System password dialog to be displayed. This is a problem, as I am trying to
access mails before this password dialog is displayed, so that I can deal
with the dialog in one of two ways depending on the nature of the mail being
opened. (I'm developing on Outlook2000 if that is relevant.)

Do you know whether there is any way to modify this behaviour?

thanks in advance

Matt Fletcher
 
M

Matt Fletcher

I had considered the Extended MAPI route, but there does not appear to be a
notification which is raised when a message is opened - is this the case, or
just due to my lack of knowledge of MAPI?
 
D

Dmitry Streblechenko

No, a message being opened has nothing to do with Extended MAPI as it is a
UI operation. The Exchange Client Extensions API does however provide means
to track that. Did you try to use Application.Inspectors.NewInspector event
in OOM? You can cancel the inspector, modify the message, then open it
again.

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

Matt Fletcher

Unfortunately for my purposes, the NewInspector event is fired after the
Protected Storage Dialog is displayed.
 
Ad

Advertisements

Joined
Jan 21, 2012
Messages
2
Reaction score
0
Hi,
Is it possible to get/set information from outlook inbox supergrid? I want to see time-stamp for each line and set different icon for some lines
 

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