G
GR
Hi All,
I have an ActiveX Control (.ocx) written in VB6 that I put on the
second page tab in an Outlook Appointment custom form. This works fine
for Outlook 2000-2003. I am now trying to port this into a separate
project to work with Outlook 2007.
So far, everything seems to come up and display fine. Now what I am
trying to do is to capture the buttons (Send, Send Update, etc...)
from the Ribbon like I do for the CommandBars in the previous Outlook
versions.
I have added the "Implements Office.IRibbonExtensibility" line into
the project and it automatically created the
"IRibbonExtensibility_GetCustomUI( )" function in the project for me.
In this function is where I added the XML code to register an onAction
callback for some of the buttons (I have used this exact same xml code
in another .dll and it worked fine).
The problem is that the "IRibbonExtensibility_GetCustomUI" function
does not seem to be getting called at all when the control is
activated. I put a messagebox at the top of that function and it never
gets to it, thereby never getting the XML code for the button
callback. What I don't understand is who calls that function
specifically. In the "UserControl_Show( )" sub is where I used to set
the Commandbars codes for the buttons I wanted to intercept. However,
I don't think I can just call the "IRibbonExtensibility_GetCustomUI"
function myself, right? It needs the RibbonID passed into it and I'm
assuming tied back to the Ribbon somehow.
I'm missing how the Ribbon gets set to the procedures in the ActiveX
control. In my DLL project, the "IRibbonExtensibility_GetCustomUI"
function gets called automatically when the DLL is loaded.
Any help? Thanks!
I have an ActiveX Control (.ocx) written in VB6 that I put on the
second page tab in an Outlook Appointment custom form. This works fine
for Outlook 2000-2003. I am now trying to port this into a separate
project to work with Outlook 2007.
So far, everything seems to come up and display fine. Now what I am
trying to do is to capture the buttons (Send, Send Update, etc...)
from the Ribbon like I do for the CommandBars in the previous Outlook
versions.
I have added the "Implements Office.IRibbonExtensibility" line into
the project and it automatically created the
"IRibbonExtensibility_GetCustomUI( )" function in the project for me.
In this function is where I added the XML code to register an onAction
callback for some of the buttons (I have used this exact same xml code
in another .dll and it worked fine).
The problem is that the "IRibbonExtensibility_GetCustomUI" function
does not seem to be getting called at all when the control is
activated. I put a messagebox at the top of that function and it never
gets to it, thereby never getting the XML code for the button
callback. What I don't understand is who calls that function
specifically. In the "UserControl_Show( )" sub is where I used to set
the Commandbars codes for the buttons I wanted to intercept. However,
I don't think I can just call the "IRibbonExtensibility_GetCustomUI"
function myself, right? It needs the RibbonID passed into it and I'm
assuming tied back to the Ribbon somehow.
I'm missing how the Ribbon gets set to the procedures in the ActiveX
control. In my DLL project, the "IRibbonExtensibility_GetCustomUI"
function gets called automatically when the DLL is loaded.
Any help? Thanks!