G
gf
Hello,
i am trying to integrate support for Outlook 2007s Ribbon interface in an otherwise already working AddIn using C++/ATL.
After quite some reading around however i still haven't come to the Point where IRibbonExtensibility::GetCustomUI() is actually called.
The main addin class looks like this:
class ATL_NO_VTABLE CAddin :
...
public IDispatchImpl<IRibbonExtensibility, &__uuidof(IRibbonExtensibility), &LIBID_Office, 2, 4>
{
...
BEGIN_COM_MAP(CAddin)
...
COM_INTERFACE_ENTRY(IRibbonExtensibility)
END_COM_MAP()
...
STDMETHOD(GetCustomUI)(BSTR RibbonID, BSTR * RibbonXml)
{
MessageBox(NULL, "CAddin::GetCustomUI()", "", MB_OK);
return E_NOTIMPL;
};
...
};
OBJECT_ENTRY_AUTO(__uuidof(Addin), CAddin)
As already mentioned, GetCustomUI() never even gets hit - and i am rather clueless now.
Am i supposed to add additional interface entries to the addins main idl file?
If so, what exactly? My websearch and trial and error didn't give me any working results yet.
Any suggestions are appreciated.
Thanks
i am trying to integrate support for Outlook 2007s Ribbon interface in an otherwise already working AddIn using C++/ATL.
After quite some reading around however i still haven't come to the Point where IRibbonExtensibility::GetCustomUI() is actually called.
The main addin class looks like this:
class ATL_NO_VTABLE CAddin :
...
public IDispatchImpl<IRibbonExtensibility, &__uuidof(IRibbonExtensibility), &LIBID_Office, 2, 4>
{
...
BEGIN_COM_MAP(CAddin)
...
COM_INTERFACE_ENTRY(IRibbonExtensibility)
END_COM_MAP()
...
STDMETHOD(GetCustomUI)(BSTR RibbonID, BSTR * RibbonXml)
{
MessageBox(NULL, "CAddin::GetCustomUI()", "", MB_OK);
return E_NOTIMPL;
};
...
};
OBJECT_ENTRY_AUTO(__uuidof(Addin), CAddin)
As already mentioned, GetCustomUI() never even gets hit - and i am rather clueless now.
Am i supposed to add additional interface entries to the addins main idl file?
If so, what exactly? My websearch and trial and error didn't give me any working results yet.
Any suggestions are appreciated.
Thanks