If you look at the ribbon stuff I told you to look at you will see that
there are separate GetCustomUI() callbacks for messages in create and read
modes. So you can supply different XML for each type. One provides
"Microsoft.Outlook.Mail.Read" and the other provides
""Microsoft.Outlook.Mail.Compose" as the RibbonID argument.
There is no way to get or handle any callbacks for any custom ribbon control
not created by you. If that's what you want forget about it.
If what you want is to handle clicks on built-in ribbon controls that is
repurposing the controls, and there are articles on how to do that. Just
google for "repurpose ribbon controls".
Many of these questions are already answered if you look at the materials
that are available.
--
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
"ryotyankou via OfficeKB.com" u48591@uwe wrote in message
news:97c77a8491a1a@uwe...
Thank you for reply, Ken. Ribbon is quite strange to me, i'm trying at my
best, now two questions, 1.)How could i load two different xml file for
two
conditions, one for editor mode, another for viewer mode, since
GetCustemUI
only initialize for once after first NewInspector event.
2.)How could i monitor click event on other button(not created by me) if
user
click on it. Should i found the specified button and get its
CommandBarButton
or If i can get its ribbon interface and make something on it?
These are my understanding, may be it is misunderstand, if so, could you
pls
help me out? thanks.