问题描述
现在,我构建了一个Excel 2007 Addin-in,它有一些控件。现在我想为控件添加bmp资源。
Office 2007 Addin使用XML添加控件,如下所示。菜单控件使用 image =camera.bmp添加bmp。根据MSDN
[]
,这个方法只适用于C#和VBA,所以如果有任何方法可以使用C ++实现向控件添加bmp资源,那就全部了谢谢。
< customui xmlns =http://schemas.microsoft.com/office/2006/01/customuiloadimage =LoadImage>
< ribbon startfromscratch =false>
< tabs>
< tab id =tab1label =Menu Demokeytip =x>
< group id =group1label =演示组>
< menu id =menu1>
label = 文字处理程序
itemSize =大
getScreentip =GetScreenTip
supertip =这是菜单的超级提示。
image =camera.bmp>
< button id =button1
imageMso = HappyFace
getDescription =GetDescription
label =我的按钮
$ b $bönAction=OnAction/>
Now ,I build an Excel 2007 Addin-in which has some controls.Now I want add bmp resource to the controls.
Office 2007 Addin add controls using XML,such as following. The menu control add bmp using image="camera.bmp" .According the MSDN
http://msdn.microsoft.com/en-us/library/office/bb462634%28v=office.12%29.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-4[^]
,the method just for C# and VBA,So if there any method can achieve adding bmp resource to the controls using C++,That's all thank you.
<customui xmlns="http://schemas.microsoft.com/office/2006/01/customui" loadimage="LoadImage">
<ribbon startfromscratch="false">
<tabs>
<tab id="tab1" label="Menu Demo" keytip="x">
<group id="group1" label="Demo Group">
<menu id="menu1">
label="Text Handler"
itemSize="large"
getScreentip="GetScreenTip"
supertip="This is a super tip for the menu."
image="camera.bmp" >
<button id="button1"
imageMso="HappyFace"
getDescription="GetDescription"
label="My Button"
önAction="OnAction" />
"
推荐答案
这篇关于Excel Addin包含一些控件,将资源bmp加载到控件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!