How do you draw a Taskbar button using visual styl

2020-08-01 08:17发布

I've created a DeskBand toolbar and I want to display a button on the toolbar that has the style visual style as a taskbar button.

In .NET you can use the VisualStyleRenderer to render the Taskbar BACKGROUND, but there's way to render a button.

Are there any Win32 API's I can use to draw the button using Visual Styles rather than emulating the look of the button via drawing paths or images?

2条回答
狗以群分
2楼-- · 2020-08-01 08:30

So far, I have only been able to find a solution that reportedly works on Vista according to the forum discussion linked. It would seem that the UxTheme.dll for XP does not support the retrieval of subclasses, which is what you require to reliably obtain the TaskBand button visual style elements for the current theme, it would appear.

查看更多
登录 后发表回答