开发者

How can I enable Vista/Win 7 theming/style for a ToolTip control?

开发者 https://www.devze.com 2022-12-26 01:22 出处:网络
In Windows Vista and Windows 7, ToolTips h开发者_如何学Cave a new visual style or theme, they are shiny grey metallic. How can I enable the new style for a ToolTip control?

In Windows Vista and Windows 7, ToolTips h开发者_如何学Cave a new visual style or theme, they are shiny grey metallic. How can I enable the new style for a ToolTip control?

Some controls, like ListViews and ToolBars, use the new tooltips automatically, but other tooltips are rendered with the old yellow XP style.

I've tried sending an TTM_SETWINDOWTHEME message but nothing happens and I'm not sure what string I am supposed to use for the visual style name.

SetWindowTheme doesn't work either, I've used it successfully on ListViews and TreeViews to set the "Explorer" style (see http://www.danielmoth.com/Blog/TreeViewVista.aspx), but that doesn't seem to work on ToolTips.

I'm using the plain win32 C API.


Have you specified TTS_USEVISUALSTYLE as the window style on your tooltips?

0

精彩评论

暂无评论...
验证码 换一张
取 消