Get Inspector or MailItem as IDispatch object from a window handle

T

Tom

I am able to get any window handle from outlook. For each of these window
handle I've tried AccessibleObjectFromWindow( hWnd, (DWORD)OBJID_NATIVEOM,
IID_IDispatch, (void**)&pDispWindow); I am able to get Word.Document object
from a window class as "_WwG". But I am not able to get Outlook.Inspedtor
object from any of these window.

Is there any way to get Outlook.Inspedtor object from one of these window?

Thanks in advance.

Tom
 
B

Brian Tillman

Tom;113091 said:
I am able to get any window handle from outlook. For each of these
window
handle I've tried AccessibleObjectFromWindow( hWnd,
(DWORD)OBJID_NATIVEOM,
IID_IDispatch, (void**)&pDispWindow); I am able to get Word.Document
object
from a window class as "_WwG". But I am not able to get
Outlook.Inspedtor
object from any of these window.

Is there any way to get Outlook.Inspedtor object from one of these
window?

You should ask in microsoft.public.outlook.program_vba where the
programmers visit.
 

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