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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Load add-in on Outlook 2003 startup



 
 
Thread Tools Search this Thread Display Modes
  #11  
Old February 20th 08, 01:44 PM posted to microsoft.public.outlook.program_addins
Goran
external usenet poster
 
Posts: 48
Default Load add-in on Outlook 2003 startup

Thanks Ken.
Do I call open dialog form as modal or not (Form1.show 1).I realize that my
problem is that I need to stop execution in the code in inspector window when
dialog form pops up, and wait for the dialog form to be closed and pass the
value to the dropdown on the inspector and based on passed value continue
execution in the inspector.

"Ken Slovak - [MVP - Outlook]" wrote:

You need to set the z-order of the Inspector window before you set the form
dialog's z-order. I usually use SetWindowLong to make the Inspector window
parented by the main Outlook window, then I make the dialog window a child
of the Inspector window. I try to avoid SetWindowPos() with HWND_TOPMOST
because if the user clicks in a completely different application the dialog
using HWND_TOPMOST still remains on top and that tends to completely annoy
users.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"goran" wrote in message
...
I checked in Spy++. I have correct OpusApp window handle.I can't believe it
neither.

I have this on dropdown change event that suppose to launch dialog form:

SetWindowPos(frmDialog.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE Or
SWP_NOMOVE)

frmDialog.Show 1

then on Inspector_Activate I have:

hw = FindWindow("OpusApp", vbNullString) this is where I capture Inspector
Handle

and on dialog form Activate event I try to set Inspector as foreground
window like:

Form1_Activate()
SetForegroundWindow(hw)
end sub

And when I click dialog form Inspector window which is foreground window
gets minimized. I even tried SetActiveWindow(hw), ShowWindow hw,
SW_SHOWACTIVATE etc to keep Inspector from dissapearing. I event put code
in
Inspector_Deactivate event to check if DialogForm is visible, If it is I
call
inspector.activate method. That does help sometimes but not always. Any
ideas
what should I try?

Thanks



Ads
  #12  
Old February 20th 08, 03:34 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Load add-in on Outlook 2003 startup

You can try that or you can use a loop that checks for a public boolean in
the dialog that's only set based on some condition. See what works best for
you.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"goran" wrote in message
...
Thanks Ken.
Do I call open dialog form as modal or not (Form1.show 1).I realize that
my
problem is that I need to stop execution in the code in inspector window
when
dialog form pops up, and wait for the dialog form to be closed and pass
the
value to the dropdown on the inspector and based on passed value continue
execution in the inspector.


  #13  
Old February 20th 08, 04:04 PM posted to microsoft.public.outlook.program_addins
Goran
external usenet poster
 
Posts: 48
Default Load add-in on Outlook 2003 startup

thanks. And if I have multiple "OpusApp" windows opened and all of them by
default have the same caption "Untitled Message" when I use FindWindow how do
I get handle from current one as oppose from any that are already opened.

Thanks a lot for your time and help,

Goran

"Ken Slovak - [MVP - Outlook]" wrote:

You can try that or you can use a loop that checks for a public boolean in
the dialog that's only set based on some condition. See what works best for
you.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"goran" wrote in message
...
Thanks Ken.
Do I call open dialog form as modal or not (Form1.show 1).I realize that
my
problem is that I need to stop execution in the code in inspector window
when
dialog form pops up, and wait for the dialog form to be closed and pass
the
value to the dropdown on the inspector and based on passed value continue
execution in the inspector.



  #14  
Old February 20th 08, 05:04 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Load add-in on Outlook 2003 startup

Set the caption. Or look at all the handled windows and their hWnd's and see
which window isn't being handled. I usually store the hWnd for the window in
my Inspector wrapper class so I have a reference to it at all times for
things like that.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"goran" wrote in message
...
thanks. And if I have multiple "OpusApp" windows opened and all of them by
default have the same caption "Untitled Message" when I use FindWindow how
do
I get handle from current one as oppose from any that are already opened.

Thanks a lot for your time and help,

Goran


  #15  
Old February 20th 08, 06:51 PM posted to microsoft.public.outlook.program_addins
Goran
external usenet poster
 
Posts: 48
Default Load add-in on Outlook 2003 startup

Ok, but what do you mean by "handled Windows"

"Ken Slovak - [MVP - Outlook]" wrote:

Set the caption. Or look at all the handled windows and their hWnd's and see
which window isn't being handled. I usually store the hWnd for the window in
my Inspector wrapper class so I have a reference to it at all times for
things like that.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"goran" wrote in message
...
thanks. And if I have multiple "OpusApp" windows opened and all of them by
default have the same caption "Untitled Message" when I use FindWindow how
do
I get handle from current one as oppose from any that are already opened.

Thanks a lot for your time and help,

Goran



  #16  
Old February 20th 08, 07:21 PM posted to microsoft.public.outlook.program_addins
Goran
external usenet poster
 
Posts: 48
Default Load add-in on Outlook 2003 startup

And Caption is read only

"Ken Slovak - [MVP - Outlook]" wrote:

Set the caption. Or look at all the handled windows and their hWnd's and see
which window isn't being handled. I usually store the hWnd for the window in
my Inspector wrapper class so I have a reference to it at all times for
things like that.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"goran" wrote in message
...
thanks. And if I have multiple "OpusApp" windows opened and all of them by
default have the same caption "Untitled Message" when I use FindWindow how
do
I get handle from current one as oppose from any that are already opened.

Thanks a lot for your time and help,

Goran



  #17  
Old February 20th 08, 08:27 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Load add-in on Outlook 2003 startup

If you set the Subject of the email item that changes the caption.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"goran" wrote in message
...
And Caption is read only


  #18  
Old February 20th 08, 08:27 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Load add-in on Outlook 2003 startup

I mean windows that are being handled in your Inspector wrapper classes and
wrapper collection.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"goran" wrote in message
...
Ok, but what do you mean by "handled Windows"


  #19  
Old February 20th 08, 11:18 PM posted to microsoft.public.outlook.program_addins
Goran
external usenet poster
 
Posts: 48
Default Load add-in on Outlook 2003 startup

Thank you very much Ken.

"Ken Slovak - [MVP - Outlook]" wrote:

If you set the Subject of the email item that changes the caption.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"goran" wrote in message
...
And Caption is read only



  #20  
Old March 12th 08, 01:49 PM posted to microsoft.public.outlook.program_addins
Goran
external usenet poster
 
Posts: 48
Default Load add-in on Outlook 2003 startup

Hi Ken,

Sorry to use this old thread, but this is the best way to get to you. I use
your add-in wrapper to develop Outlook 2003 add-in with VB 6. It looks OK.
Now I want to use this add-in with Outlook 2007 and I have a problem when it
tries to installFeature(CDO). I installed CDO manually myself. Do I need to
check for CDO if I know that machine has it installed because I installed it
manually?

Thanks,

Goran

"Ken Slovak - [MVP - Outlook]" wrote:

If you set the Subject of the email item that changes the caption.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"goran" wrote in message
...
And Caption is read only



 




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
Outlook 2003 startup chemnut94707 Outlook - Using Contacts 1 May 6th 06 12:13 AM
New Outlook 2003 Install Won't Load ajamrozek Outlook - Installation 3 April 16th 06 08:29 PM
Outlook 2003 will not load. DrStuart Outlook - Installation 3 February 1st 06 02:51 AM
outlook 2003 won't load MN24FAN Outlook - Installation 2 January 30th 06 05:16 PM
Outlook 2003: Add-In doesn't load any more outl00kalium Add-ins for Outlook 0 January 8th 06 02:46 PM


All times are GMT +1. The time now is 08:46 PM.


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.