Hi Tico.feng,
感谢在MSDN论坛发帖。
>>想使用API设置任务栏的透明度,应该调用哪个API呢?
最好是Windows SDK的API.
如果你是想修改你自定义任务栏窗口的透明度,你可以使用SetWindowLong将窗口设置为WS_EX_LAYERED属性。然后再用SetLayeredWindowAttributes函数的bAlpha参数设置透明度。当bAlpha为0时,窗口是完全透明的。
当bAlpha为255时,窗口是不透明的。
如果你是想设置Windows任务栏的透明度,据我所知,还没有这样的Windows API可以供你使用。
Best Regards,
Sera Yu
MSDN Community Support<br/> Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this
thread. If you have any compliments or complaints to MSDN Support, feel free to contact <a href="mailto:MSDNFSF@microsoft.com">MSDNFSF@microsoft.com</a>.