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

Outlook 2003 Plugin not receiving resize events



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 14th 09, 06:43 PM
Michael Fox Michael Fox is offline
Junior Member
 
First recorded activity at Outlookbanter: Sep 2009
Posts: 2
Default Outlook 2003 Plugin not receiving resize events

I have an outlook 2003 plugin that I am developing in C# using VSTO in Visual Studio 2008, and I am having some trouble with resizing when using Word 2003 as the composer.

The Plugin adds an extra panel to the bottom of the compose window (shrinking the main compose window slightly.) The extra panel contains a Rich text box and a few other controls.

The issue is that the extra panel is not receiving resize events from the compose window. I have used the NativeWindow class in C# to get access to the message queue in the parent window (to intercept resize events) but am not receiving any events. Upon closer inspection, this appears to be because the Word2003 composer window is in a different process than my extra panel. (The Panel is created by the plugin running in Outlook, and the Word2003 compose window is an instance of Word that runs in a separate process.) Not receiving messages from windows in another process is a known limitation of the NativeWindow class.

So my question is: Is there a way to receive the resize events from the Word 2003 compose window? My resizing code works correctly to position and size my extra panel, the issue is that it is not being triggered by resize events.
Ads
  #2  
Old September 15th 09, 03:31 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook 2003 Plugin not receiving resize events

If it could be done at all it would be by using Win32 API message hooks on
that window and intercepting all messages directed at that window. You'd
probably get better information and help in a Win32 API group or something
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


"Michael Fox" wrote in message
...

I have an outlook 2003 plugin that I am developing in C# using VSTO in
Visual Studio 2008, and I am having some trouble with resizing when
using Word 2003 as the composer.

The Plugin adds an extra panel to the bottom of the compose window
(shrinking the main compose window slightly.) The extra panel contains
a Rich text box and a few other controls.

The issue is that the extra panel is not receiving resize events from
the compose window. I have used the NativeWindow class in C# to get
access to the message queue in the parent window (to intercept resize
events) but am not receiving any events. Upon closer inspection, this
appears to be because the Word2003 composer window is in a different
process than my extra panel. (The Panel is created by the plugin
running in Outlook, and the Word2003 compose window is an instance of
Word that runs in a separate process.) Not receiving messages from
windows in another process is a known limitation of the NativeWindow
class.

So my question is: Is there a way to receive the resize events from the
Word 2003 compose window? My resizing code works correctly to position
and size my extra panel, the issue is that it is not being triggered by
resize events.




--
Michael Fox


 




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
runtime error while loading of outlook 2003 plugin Nagaraj Add-ins for Outlook 1 July 6th 09 02:14 PM
Resize Outlook 2003 custom forms to fit the current screen resolut Tinyski Outlook - Using Forms 0 September 12th 08 06:02 PM
Resize Issue in outlook [email protected] Outlook and VBA 1 February 1st 08 04:40 PM
Doubt whether I can develop Outlook plugin for Outlook 2003 and using VSTO 2005 SE PShah Add-ins for Outlook 5 February 8th 07 09:54 PM
Resize images attached in Outlook 2003 DougInSkagitValley Outlook - Installation 1 March 27th 06 12:06 AM


All times are GMT +1. The time now is 09:06 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.