Custom Task Panes are created per Window (ie Document)


Ad

Advertisements

J

Ji Zhou

Yes. Custom Task Pane is created per Window. That is to say, if you create a
CTP in AddInStartup to the default document window, the second open document
will not show that CTP.

If we want to show a custom task pane for each window. We need to hanlde
WindowActivate event and keep track of all open windows and their CTP status
in a global collection. There are MSDN documentations for this objective,

Managing Task pans in Multiple Word documents,
http://msdn.microsoft.com/en-us/library/bb264456(office.12).aspx

Creating Custom Task Panes in the 2007 Office system.
http://msdn.microsoft.com/en-us/library/aa338197(office.12).aspx
(note the CreateCTP function's third parameter is used to specify a window
which hosts the CTP)

Best regards,
Ji Zhou - MSFT
Microsoft Online Community Support
 

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