IRibbonExtensibility callback problem in c++

T

Tonny

Hi.
Does any one know why the IRibbonExtensibility callback function doesn't work.
The implementation method just like below:

STDMETHOD(ButtonClicked)(Office::IRibbonControl *RibbonControl)
{
return m_pRibbon->MethodGoesHere(....);
}

and the ribbon xml looks something like the following:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab id="CustomTab" label="My Label">
<group id="SampleGroup" label="Sample Group">
<button id="Button" label="Click Here" size="large"
onAction="ButtonClicked" />
</group >
</tab>
</tabs>
</ribbon>
</customUI>

The button can be added to the office app,but the click event can't be
triggered.
Who knows the reason. it seems that this is a common issue but no one can
help on it.
 
T

Tonny

You should set Interface_entry2 to your implemented interface instead of
IDTExtensibility2
 

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