Hello Peter,
If I understand it rightly, I think you are referring to the "Quick
Access
Toolbar" in the 2007 Office Fluent User Interface by the term
"QuickToolbar". Am I right? "Quick Access Toolbar" is the bar at the top
of
Office UI:
http://office.microsoft.com/en-us/help/HA102481161033.aspx
When we manually add a control, say a button of our add-in in the Add-Ins
tab, to the quick access toolbar, Office basically does this operation
for
us:
1. get the id/idMso of the button
Id is for custom control and idMso is for Office built-in controls.
2. save the id into a qat file.
http://support.microsoft.com/kb/926805
Take Word 2007 in Windows Vista as an example:
Suppose that we have a VB6 add-in whose controls appear in the Add-Ins
tab.
When we manually add one of the add-in's control (e.g. mybutton1) to
Quick
Access Toolbar, Word 2007 updates the qat file in the current user's
profile as this:
C:\Users\[username]\AppData\Local\Microsoft\Office\Word.qat
<mso:customUI xmlns:x1="WordAddIn2"
xmlns:mso="
http://schemas.microsoft.com/office/2006/01/customui"><mso:ribbon
<mso:qat><mso:sharedControls><mso:control idQ="mso:FileNewDefault"
visible="false"/><mso:control idQ="mso:FileOpen"
visible="false"/><mso:control idQ="mso:FileSave"
visible="true"/><mso:control idQ="mso:FileSendAsAttachment"
visible="false"/><mso:control idQ="mso:FilePrintQuick"
visible="false"/><mso:control idQ="mso:FilePrintPreview"
visible="false"/><mso:control idQ="mso:SpellingAndGrammar"
visible="false"/><mso:control idQ="mso:Undo" visible="true"/><mso:control
idQ="mso:RedoOrRepeat" visible="true"/><mso:control
idQ="mso:TableDrawTable" visible="false"/><mso:control idQ="x1:mybutton1"
visible="true"/></mso:sharedControls></mso:qat></mso:ribbon></mso:customUI>
Notice the line:
<mso:control idQ="x1:mybutton1" visible="true"/>
This is the addition of our control to the quick access toolbar. The XML
namespace 'x1' is defined in the beginning of the XML:
xmlns:x1="WordAddIn1"
Understanding how Office saves the status of quick access toolbar, may I
suggest the following solution to you, Peter?
Step1. Manually add a control of our add-in to the quick access toolbar.
Step2. Find the qat file as illustrated above.
Step3. Find the addition in the qat file.
Step4. Write a small program to update your client's qat setting
according
to the finding in Step3.
If you have any other questions or concerns, please feel free to tell me.
Have a very nice day!
Regards,
Jialiang Ge (
[email protected], remove 'online.')
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you.
Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent
issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each
follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://support.microsoft.com/select/default.aspx?target=assistance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.