![]() |
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 |
#11
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |