Thanks Ken! I was able to use the hover technique to get the idMso values
that I need to repurpose. I think I am having issues with the xml format
though. I wish IRibbonExtensibility::GetCustomUI was designed differently so
that it was able to return an error code on poorly formatted xml and give me
some clues as to what's wrong. Since this is only my second attempt at
submitting xml for this call (Jenson Harris' example in using RibbonX with
C++ and ATL being my first), perhaps you can take a quick look at the xml I'm
providing and tell me what I'm doing wrong. The reason I think I'm having XML
issues is that I never see a call to my IDispatch::GetIDsOfNames when I click
the appropriate button. Here's the XML I'm returning:
customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
ribbon
commands
command idMso="JunkEmailAddToBlockedSendersList" onAction="OnABSL"
command idMso="JunkEmailAddToSafeSendersList" onAction="OnASSL"
command idMso="JunkEmailAddToSafeDomainList" onAction="OnASDL"
command idMso="JunkEmailOptions" onAction="OnOptions"
command idMso="JunkEmailMarkAsNotJunk" onAction="OnMarkAsNotJunk"
/commands
/ribbon
/customUI
John
"Ken Slovak - [MVP - Outlook]" wrote:
The ribbon schemas is a zip that has general docs on the overall ribbon
schema, then there are individual docs for each Office application's schemas
and individual ones for each Outlook item type. Everything isn't in just one
doc.
One way to get an idMso for a built-in ribbon control is to go to the
customize dialog for the QAT. In there if you hover over a control the idMso
will be displayed. I do that every so often in one-off situations, but I
find it more efficient when I'm composing a complete ribbon XML to work with
the separate docs.
--
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
"John Erickson" wrote in message
...
Is there one document that I can download that describes all the idMso
commands in the Outlook ribbons or is there a utility like Spy for
Ribbons?