COM Add-in problem while loading multiple documents.

S

santosh

Hello,
i am developing one COM word-addin through VC++ in which there is one
commandbar, which contains three button. every button having some
control. while i m opening multiple document my button click event is
not fired for every document.my button click event is fired only for
the 1st document and for others documents the event is not fired. So,
please tell me for that wht I have to do.

Thanks,
Santosh
 
C

Cindy M -WordMVP-

Hi Santosh,
i am developing one COM word-addin through VC++ in which there is one
commandbar, which contains three button. every button having some
control. while i m opening multiple document my button click event is
not fired for every document.my button click event is fired only for
the 1st document and for others documents the event is not fired.
You need to assign the TAG property of each button a unique value, so
that it can be identified. See this article

http://support.microsoft.com/default.aspx?scid=kb;en-us;302901

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 

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