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

Controls not notified when customtaskpane is resized



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 12th 08, 07:08 AM posted to microsoft.public.outlook.program_addins
Danny
external usenet poster
 
Posts: 59
Default Controls not notified when customtaskpane is resized

Hi,

I have a CTP that contains my WPF control.

When the CTP is resized by the user, my control is not notified on the size
changes.

Any ideas?

Ads
  #2  
Old October 13th 08, 02:30 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Controls not notified when customtaskpane is resized

If you cast the ContentControl of the CTP to a forms Control object does it
cause an exception? If not then you might be able to do that and subscribe
to the SizeChanged() event.

If that doesn't work then you might just have to use a hack of finding your
CTP as a window using a Win32 API call and then hook to any message sent to
that window. Then you can look for a resize message sent to the window and
respond accordingly.

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


"danny" wrote in message
...
Hi,

I have a CTP that contains my WPF control.

When the CTP is resized by the user, my control is not notified on the
size
changes.

Any ideas?


 




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 2007 taskpad columns disappear when resized Charles Calvert Outlook - Calandaring 1 March 29th 11 10:00 PM
Duplicate CustomTaskPane Windows - Help! Paulem0071 Add-ins for Outlook 1 September 11th 08 07:22 PM
Are the assigned contacts notified of the an update to a task? NTF Outlook - Using Contacts 0 July 19th 06 03:46 PM
Add controls with out publishing in C# lg Add-ins for Outlook 12 July 13th 06 02:49 PM
Using MFC controls in Outlook Add-in (ATL/C++) Kim, KiSong Add-ins for Outlook 0 March 7th 06 07:03 AM


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