Some questions on Custom Task Panes Outlook2007

E

escamoteur

Hi,

I inlcuded now a CTP in my Addin. Works fine so far.

How can I react on size changes of the User of the CTP? Especially I want to prevent the user to enlarge the CTP bigger than the
embedded user control.

Can I remove the heading of the CTP with the small dropdown menu and the closing icon?

When extending the CTP over the size of its embedded User Control the background is not proberly refeshed and I get a lot of blue
horizontal lines instead of just the CTP background color.

Best
Tom
 
K

Ken Slovak - [MVP - Outlook]

If you look at the object model for Office.CustomTaskPane the only 2 events
provided are DockPositionStateChange() and VisibleStateChange().

Although you can set/get the height and width of a CTP there is no resizing
event that you can use for what you want. You'd most likely have to get the
window for the CTP and then use Windows API subclassing to get an event when
the window is resized.
 
E

escamoteur

Thanks, so you confirm what I was already fearing but still was hoping that someone at MS would have been a bit smarter.
Thanks!

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top