How to load custom images on RibbonX?
-
I'm trying to use my own image (.png) as a ribbon button. I've managed to place a windows icon on my custom button using this code <code> STDMETHODIMP CConnect::GetCustomUI(BSTR RibbonID, BSTR * RibbonXml) { if (!RibbonXml) return E_POINTER; *RibbonXml = SysAllocString( L"<customUI xmlns=\"http://schemas.microsoft.com/office/2006/01/customui\\"\\>" L"<ribbon>" L"<officeMenu>" L"<menu idMso=\"FileSendMenu\">" L"<button id=\"OfficeButton1\" imageMso=\"HappyFace\" label=\"Happy Print\" description=\"Prints a random joke in the footer of each document\" onAction=\"ButtonClicked\"/>" L"</menu>" L"</officeMenu>" L"</ribbon>" L"</customUI>" ); return (*RibbonXml ? S_OK : E_OUTOFMEMORY); } </code> From what I've googled, I'm supposed to create GetImage or LoadImage callbacks. How to do this?