PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins QI for IOleWindow fails in Outlook2003 office suite

Reply

QI for IOleWindow fails in Outlook2003 office suite

 
Thread Tools Rate Thread
Old 17-06-2004, 08:16 AM   #1
Nitin Agrawal
Guest
 
Posts: n/a
Default QI for IOleWindow fails in Outlook2003 office suite


Hi,
I want a handle of Outlook Compose Window.
For this I am listening to Item_Open event.
As the controls come in Item_Open event I displays the Item( Item.Display
method) and set its state to Maximize.
When I am calling QI on inspector object of this item it is failing in
Outlook 2003 office suite.
It is working fine with Outlook2000 ,any suggestion?
I tried the same thing in BeforeMaximize event of inspector also , but it
result the same.

Also when outlook compose is opened by autoamtion code(Not from Outlook
application) the compose window comes blinking in task bar.
Is there any way to bring it to front?

Thanks,
Nitin Agrawal.


  Reply With Quote
Old 17-06-2004, 07:20 PM   #2
Dmitry Streblechenko \(MVP\)
Guest
 
Posts: n/a
Default Re: QI for IOleWindow fails in Outlook2003 office suite

It works just fine in Outlook 2003 unless you are using the Word Editor,
which also does not work in the previous versions of Outlook.
You can try to wait for the Inspector.Activate event, then call
GetForegroundWindow Win API function.

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


"Nitin Agrawal" <agrawal@premiertechnologygroup.com> wrote in message
news:e%23fLUrDVEHA.1656@TK2MSFTNGP09.phx.gbl...
> Hi,
> I want a handle of Outlook Compose Window.
> For this I am listening to Item_Open event.
> As the controls come in Item_Open event I displays the Item( Item.Display
> method) and set its state to Maximize.
> When I am calling QI on inspector object of this item it is failing in
> Outlook 2003 office suite.
> It is working fine with Outlook2000 ,any suggestion?
> I tried the same thing in BeforeMaximize event of inspector also , but it
> result the same.
>
> Also when outlook compose is opened by autoamtion code(Not from Outlook
> application) the compose window comes blinking in task bar.
> Is there any way to bring it to front?
>
> Thanks,
> Nitin Agrawal.
>
>



  Reply With Quote
Old 21-06-2004, 01:58 PM   #3
Nitin Agrawal
Guest
 
Posts: n/a
Default Re: QI for IOleWindow fails in Outlook2003 office suite

Hi Dmitry,

Thanks for providing valuable information.
I have one question , are there some other properties or intefaces that are
dependant on editor type.

Thanks,
--Nitin
"Dmitry Streblechenko (MVP)" <dmitry@dimastr.com> wrote in message
news:uCitCfJVEHA.2908@TK2MSFTNGP10.phx.gbl...
> It works just fine in Outlook 2003 unless you are using the Word Editor,
> which also does not work in the previous versions of Outlook.
> You can try to wait for the Inspector.Activate event, then call
> GetForegroundWindow Win API function.
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
>
> "Nitin Agrawal" <agrawal@premiertechnologygroup.com> wrote in message
> news:e%23fLUrDVEHA.1656@TK2MSFTNGP09.phx.gbl...
> > Hi,
> > I want a handle of Outlook Compose Window.
> > For this I am listening to Item_Open event.
> > As the controls come in Item_Open event I displays the Item(

Item.Display
> > method) and set its state to Maximize.
> > When I am calling QI on inspector object of this item it is failing in
> > Outlook 2003 office suite.
> > It is working fine with Outlook2000 ,any suggestion?
> > I tried the same thing in BeforeMaximize event of inspector also , but

it
> > result the same.
> >
> > Also when outlook compose is opened by autoamtion code(Not from Outlook
> > application) the compose window comes blinking in task bar.
> > Is there any way to bring it to front?
> >
> > Thanks,
> > Nitin Agrawal.
> >
> >

>
>



  Reply With Quote
Old 21-06-2004, 11:23 PM   #4
Dmitry Streblechenko \(MVP\)
Guest
 
Posts: n/a
Default Re: QI for IOleWindow fails in Outlook2003 office suite

Yes, Inspector.HTMLEditor and Inspector.WordEditor will return a valid
object or NULL depending on the editor type.

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


"Nitin Agrawal" <agrawal@premiertechnologygroup.com> wrote in message
news:uoQBW94VEHA.1152@TK2MSFTNGP09.phx.gbl...
> Hi Dmitry,
>
> Thanks for providing valuable information.
> I have one question , are there some other properties or intefaces that

are
> dependant on editor type.
>
> Thanks,
> --Nitin
> "Dmitry Streblechenko (MVP)" <dmitry@dimastr.com> wrote in message
> news:uCitCfJVEHA.2908@TK2MSFTNGP10.phx.gbl...
> > It works just fine in Outlook 2003 unless you are using the Word Editor,
> > which also does not work in the previous versions of Outlook.
> > You can try to wait for the Inspector.Activate event, then call
> > GetForegroundWindow Win API function.
> >
> > Dmitry Streblechenko (MVP)
> > http://www.dimastr.com/
> > OutlookSpy - Outlook, CDO
> > and MAPI Developer Tool
> >
> >
> > "Nitin Agrawal" <agrawal@premiertechnologygroup.com> wrote in message
> > news:e%23fLUrDVEHA.1656@TK2MSFTNGP09.phx.gbl...
> > > Hi,
> > > I want a handle of Outlook Compose Window.
> > > For this I am listening to Item_Open event.
> > > As the controls come in Item_Open event I displays the Item(

> Item.Display
> > > method) and set its state to Maximize.
> > > When I am calling QI on inspector object of this item it is failing in
> > > Outlook 2003 office suite.
> > > It is working fine with Outlook2000 ,any suggestion?
> > > I tried the same thing in BeforeMaximize event of inspector also , but

> it
> > > result the same.
> > >
> > > Also when outlook compose is opened by autoamtion code(Not from

Outlook
> > > application) the compose window comes blinking in task bar.
> > > Is there any way to bring it to front?
> > >
> > > Thanks,
> > > Nitin Agrawal.
> > >
> > >

> >
> >

>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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