继承Visual Studio的常规OutputWindowPane的背景色 [英] Inherit the background color of the General OutputWindowPane of Visual Studio
问题描述
你好
我正在尝试使我们的VSpackage的背景颜色自动遵循常规的OutputWindowPane.我发现补充IVsFontAndColorEvents接口是方法.
I'm trying to make the background color of one of our VSpackage automatically follow the general OutputWindowPane. I found out that inplementing the IVsFontAndColorEvents interface is the way.
我的主要问题是定义OnFontChanged (Guid,FontInfo [],LOGFONTW [],UInt32)和OnItemChanged (Guid,String,  ; Int32,ColorableItemInfo [],UInt32和UInt32) 方法.
My main issue come with defining OnFontChanged(Guid, FontInfo[], LOGFONTW[], UInt32) and OnItemChanged(Guid, String, Int32, ColorableItemInfo[], UInt32, UInt32) methods.
在Guid之外,我不知道如何找到每种方法的其余参数.
Outside of the Guid, i don't know how to find the remaining parameters for each method.
请您能告诉我在哪里可以找到有关OutputWindowPane的参数或该接口实现的任何示例吗?
Please can you explain to me where to find thoses parameter concerning the OutputWindowPane or any example of implementation of this interface??
预先感谢
推荐答案
主席Fabrice,
Hi Chairman Fabrice,
>>>我正在尝试使我们的VS软件包之一的背景颜色自动遵循常规的OutputWindowPane.
>>I'm trying to make the background color of one of our VSpackage automatically follow the general OutputWindowPane.
我建议您使用TextManagerEvents来做到这一点.以下链接供您参考.
I suggest you use TextManagerEvents to do it. Link below is for your reference.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/8db35420-61f3-4f9d-9fd5-04687a914f75/vs-package-receiving-option-fonts-and-color-change-events
最好的问候,
王丽
Best Regards,
Li Wang
这篇关于继承Visual Studio的常规OutputWindowPane的背景色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!