A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to get Inspector object from Window handle



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 11th 10, 02:07 PM posted to microsoft.public.outlook.program_vba
Tom
external usenet poster
 
Posts: 181
Default How to get Inspector object from Window handle

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  
Old January 11th 10, 02:52 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to get Inspector object from Window handle

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  
Old January 12th 10, 02:52 PM posted to microsoft.public.outlook.program_vba
Tom
external usenet poster
 
Posts: 181
Default How to get Inspector object from Window handle

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 05:04 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.