Read Complete Thread >>  

OL2007, ECE and OOM


Category: MAPI



Hi,

I am in the course of migrating an Outlook ECE to a plain OOM based one.
For now I need to keep ECE OnRead etc methods but all control is done
directly via OOM. That is buttons and icons are not anymore created and
handled by the ECE methods.

In OnRead, OnWrite etc I need to get the current inspector:

obj = get_eecb_object (eecb);
if (obj) /* This is a MailItem.
*/
inspector = get_oom_object (obj, "GetInspector");

get_eecb_object uses IID_IOutlookExtCallback to get an IDispatch object
and get_oom_object calls the GetInspector method.

All works very well with OL2003. The problem is in OL2007's composer:
There GetInspector does not return the current inspector for the
MailItem but creates a new inspector which is obviously not what I want.
However, the inspector is running and I can toggle my own buttons there
without problems; I have found no way in OL2007 to find this inspector
given the MailItem.

Any hints on what I can do to get hold of the inspector?


Salam-Shalom,

Werner

--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.

--------------------------------------------------------------------------
The MAPI-L list is hosted on a Windows NT(TM) machine running L-Soft
international's LISTSERV(R) software. For sub/unsub info and archives,
see http://peach.ease.lsoft.com/archives/mapi-l.html .
COPYRIGHT INFO:
http://peach.ease.lsoft.com/scripts/wa.exe?SHOWTPL=COPYRIGHT&L=MAPI-L


Questions or comments? Feel free to post them here. No login or id required.



Valid XHTML 1.0!
Site Map >>