在C#中使用DrawThemeTextEx? [英] Using DrawThemeTextEx in C#?
问题描述
我正在创建一个可以在Aero Glass上使用的标签控件,并且我希望文本以"Vista方式"发光.有一个名为" DrawThemeTextEx "的WinAPI函数,但我不知道如何使用它,并且搜索也没有很多结果.
我发现了此消息,但并没有告诉您太多信息: DrawThemeTextEx "吗?
对,因此该链接中的代码缺少的是他调用的某些本机函数(例如IsCompositionEnabled和SelectObject等)的import语句以及一些常量等. /p>
找到它们的最简单方法是在平台调用
上查找它们例如, VistaApi.IsCompositionEnabled()表示仅在包装该本地电话.
界面 C#透明GUI 提供了c#中的所有代码.
干杯, y
I am creating a label control which can be used on Aero Glass and I want the text to glow "the Vista way". There is a WinAPI function called 'DrawThemeTextEx' but I don't know how to use it and searching didn't give many results.
I found this message but it doesn't tell you much : http://www.codeproject.com/Messages/3273238/Text-on-Aero-Glass-that-has-Painted-Layer-how.aspx
Does anyone know how to use 'DrawThemeTextEx' in .NET ?
Right, so what's missing from the code in that link is the import statements for some native functions he calls like IsCompositionEnabled and SelectObject etc along with some constants etc.
The easiest way to find them is by looking them up on Platform Invoke
for instance the VistaApi.IsCompositionEnabled() stated there is just wrapping that native call.
insface C# Transparent GUI provides all of the code in c#.
Cheers, Phyx
这篇关于在C#中使用DrawThemeTextEx?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!