1
了哪一步,我需要遵循使用一些Visual Studio中的內置的圖標在我的擴展程序工具(例如打開,保存,運行,打破圖標)?使用內置在Visual Studio擴展圖標
我一直在使用常量如cmdidSave
從stdidcmd.h
在我VSCT文件中像這樣的嘗試:
<Button guid="guidBBTWindowPackageCmdSet" id="cmdidMyButton1" priority="0x0101" type="Button">
<Parent guid="guidBBTWindowPackageCmdSet" id="ToolbarGroupID"/>
<Icon guid="CMDSETID_StandardCommandSet14" id="cmdidSave" />
<Strings>
<CommandName>cmdidMyCommand1</CommandName>
<ButtonText>Load File</ButtonText>
</Strings>
</Button>
但它不顯示圖標。相反,它開始以文本樣式(文本標題而不是圖像)顯示按鈕。
在另一方面,如果我使用「圖像條方法」它工作正常(如默認擴展模板完成),但是這不是我想做的事情。