![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi,
I post this question on Outlook-General and administrator suggest me putting here. 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 |
Ads |
#2
|
|||
|
|||
![]()
You can how the other way around? For a given window handle, find its
topmost parent, then compare that handle with all the window handles for each inspector in the Application.Inspectors collection (use IOleWindows for each inspector). -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Tom" wrote in message ... Hi, I post this question on Outlook-General and administrator suggest me putting here. 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 |
#3
|
|||
|
|||
![]()
Thanks Dmity, finally I am able to find a way to get Inspector object.
Because there is only ONE Outlook running in one system. I am able to get Outlook Application object without window handle. From Application object I have no problem doing anything as same in VBA. Tom "Dmitry Streblechenko" wrote: You can how the other way around? For a given window handle, find its topmost parent, then compare that handle with all the window handles for each inspector in the Application.Inspectors collection (use IOleWindows for each inspector). -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Tom" wrote in message ... Hi, I post this question on Outlook-General and administrator suggest me putting here. 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 . |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to get active inspector window handle? | madhavi | Add-ins for Outlook | 3 | October 13th 09 07:55 PM |
How to get active inspector window handle? | madhavi | Add-ins for Outlook | 0 | October 12th 09 07:37 AM |
Using Ribbon in Inspector window | [email protected] | Add-ins for Outlook | 2 | May 21st 09 07:59 PM |
Getting handle of an active dialog window | Ewgenij Sokolovski | Outlook and VBA | 6 | December 16th 08 03:35 PM |
Help with 'MailItem' object of WordMail Inspector | [email protected] | Add-ins for Outlook | 2 | May 18th 06 07:28 PM |