M
millerlai
Hi all,
I need to add a callback function for OpenAttach in Outlook 2010.
I also have study the following document and implement it.
http://msdn.microsoft.com/en-us/library/aa722523.aspx
But I got the runtime error when invoke OpenAttachment in Outlook 2010
Does anyone know how to use onAction to repurpose for "OpenAttach" command?
Or "OpenAttach" can not support "repurpose" ?
The following is the XML that customized by myself.
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
onLoad="OnLoad">
<commands>
<command idMso="OpenAttach" onAction="OpenAttachment" />
</commands>
</customUI>
I implement the OnAction as following:
HRESULT OpenAttachment(IRibbonControl *pControl, VARIANT _BOOL
*fCancelDefault){
//: skip
return S_OK;
}
I need to add a callback function for OpenAttach in Outlook 2010.
I also have study the following document and implement it.
http://msdn.microsoft.com/en-us/library/aa722523.aspx
But I got the runtime error when invoke OpenAttachment in Outlook 2010
Does anyone know how to use onAction to repurpose for "OpenAttach" command?
Or "OpenAttach" can not support "repurpose" ?
The following is the XML that customized by myself.
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
onLoad="OnLoad">
<commands>
<command idMso="OpenAttach" onAction="OpenAttachment" />
</commands>
</customUI>
I implement the OnAction as following:
HRESULT OpenAttachment(IRibbonControl *pControl, VARIANT _BOOL
*fCancelDefault){
//: skip
return S_OK;
}