![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi,
I m creating a plugin in MS Outlook. I have implemented the "_IDTExtensibility2" & "IRibbonExtensibility" I have added button to MS Outlook Ribbon control, but the Image that i m trying to load is not Visible. MS OUtlook is not calling the call back function "GetItemIcon". But it is calling the ButtonClicked event when the Button is clicked. This is the XML returned to Outlook when the plugin is loaded. STDMETHOD(GetCustomUI)(BSTR RibbonID, BSTR * RibbonXml) { if (!RibbonXml) return E_POINTER; ); *RibbonXml = SysAllocString( L"customUI xmlns=\" http://schemas.microsoft.com/office/2006/01/customui\"" L" onLoad=\"GetRibbonXControl\"" L" loadImage=\"GetItemIcon\"" L" ribbon" L" tabs" L" tab idMso=\"TabReadMessage\"" L" label=\"Custom Tab\"" L" group id=\"Test\"" L" label=\"Custom Group\"" L" button id=\"CustomButton1\"" L" image=\"AGIcon.bmp\"" L" size=\"large\"" L" label=\"Sample Button!\"" L" visible=\"true\"" L" onAction=\"ButtonClicked\"/" L" /group" L" /tab" L" /tabs" L" /ribbon" L"/customUI" ); return (*RibbonXml ? S_OK : E_OUTOFMEMORY); } STDMETHOD(GetItemIcon)(IDispatch * RibbonControl) { ::MessageBox(NULL,"Load Img","Sample",MB_OK); return S_OK; } Any clues? Thanks. -- Message posted via http://www.officekb.com |
Ads |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Application.ActiveInspector() is Null on Ribbon Load | Deepak N | Add-ins for Outlook | 1 | May 28th 09 03:19 PM |
Invalidate control in Ribbon | goran | Add-ins for Outlook | 4 | April 8th 08 06:07 PM |
Unable to display Custom Icons On outlook 2007 ribbon using VB 6.0 | Ashok | Add-ins for Outlook | 7 | February 15th 08 06:04 PM |
Make Ribbon image transparent | Christian Havel | Outlook and VBA | 1 | July 5th 07 03:56 PM |
Outlook 2007 Ribbon access from ActiveX control | GR | Add-ins for Outlook | 4 | May 29th 07 06:24 PM |